Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified
Accepted Solution

CameraDemo Bug in OS 6.0? Menu removes the image

I've been trying to integrate the Camera into an application and getting an unusual screen effect in OS 6.0. 

 

I've tested this on 9780 and 9800 Devices and Simulators. 

 

When the Viewfinder Field is on the screen, all is OK.  However as soon as you press the menu (for example to change the encoding), the screen s cleared. 

 

The attached images show this on a 9780 Simulator.

 

Anyone seen anything like this?  Any suggestions as workarounds?

 

I'm going to try replacing the menu with a PopupScreen and see if that helps.

Developer
Posts: 1,055
Registered: ‎01-25-2009
My Device: BlackBerry Bold 9650/BlackBerry Torch 9800

Re: CameraDemo Bug in OS 6.0? Menu removes the image

I'm having this issue on 6.0.0.337 (Torch) as well as an issue where the ViewFinder whites out completely on the first launch.

 

I have to relaunch the application for the screen to finally show up.

Jerome Carty - Follow jcarty on Twitter@jcarty | #webworks-dev / #BlackberryDev on irc.freenode.net | My Apps
Click "Accept as Solution" if post solved your original issue.. Give like/thumbs up if you feel post is helpful
Developer
Posts: 723
Registered: ‎03-12-2009
My Device: Playbook

Re: CameraDemo Bug in OS 6.0? Menu removes the image

Happens on real device too...

 

I initially encountered this when trying to use the viewfinder... I ended up going back to just launching the camera app.   As bad as it was... it ended up better than how this works.

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: CameraDemo Bug in OS 6.0? Menu removes the image

Just wondered if you could help me with the issues I wondered about when using this option:

 

1) How do you detect the picture the user has taken?

I had assumed you would need a FileJournalSystemListener to pick up the created file.

 

2) When do you pick up this file?

As soon as you see it, or when the app gets foregrounded on when the screen's onExposed is driven?

 

Any hints gratefully accepted....

Developer
Posts: 723
Registered: ‎03-12-2009
My Device: Playbook

Re: CameraDemo Bug in OS 6.0? Menu removes the image

[ Edited ]

Correct.  

 

Use FileSystemJournalListener to detect that the picture has been taken, get the path of the image.

 

At this point you have multiple avenues depending on if you only want to take a single picture, or multiples.

 

I only care about single capture so as soon as I get the image, I force the Camera app to close by injecting keydown Escape events.  This will also bring your app back into foreground.

 

Typically it takes about 1-2 seconds from taking a picture to being back in your app.   You also get all the benefits of the native camera app.

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: CameraDemo Bug in OS 6.0? Menu removes the image

Thanks.

 

I shall propose this solution and let you know what happens!

BlackBerry Development Advisor
Posts: 15,752
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: CameraDemo Bug in OS 6.0? Menu removes the image

I have been able to reprduce this in the current 6.0 releases and have logged it in Issue Tracker.  I wasn't able to reproduce it in 5.0.

 

https://www.blackberry.com/jira/browse/JAVAAPI-1602

 

I don't have a work around to provide right now (other than what was already suggested) but will follow up here if I figure one out.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 1,055
Registered: ‎01-25-2009
My Device: BlackBerry Bold 9650/BlackBerry Torch 9800

Re: CameraDemo Bug in OS 6.0? Menu removes the image

Mark, I'm not sure if this is related but if I enter and quickly leave my app (which has the view on launch), the home screen is painted with the last viewable image on the viewfinder until orientation changes or the screen is scrolled.

If its not related, I can add it to Issue Tracker to see if its reproducible.
Jerome Carty - Follow jcarty on Twitter@jcarty | #webworks-dev / #BlackberryDev on irc.freenode.net | My Apps
Click "Accept as Solution" if post solved your original issue.. Give like/thumbs up if you feel post is helpful
Developer
Posts: 1,055
Registered: ‎01-25-2009
My Device: BlackBerry Bold 9650/BlackBerry Torch 9800

Re: CameraDemo Bug in OS 6.0? Menu removes the image

P.S. Device is Torch on OS 6.0.0.337
Jerome Carty - Follow jcarty on Twitter@jcarty | #webworks-dev / #BlackberryDev on irc.freenode.net | My Apps
Click "Accept as Solution" if post solved your original issue.. Give like/thumbs up if you feel post is helpful
BlackBerry Development Advisor
Posts: 15,752
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: CameraDemo Bug in OS 6.0? Menu removes the image

 


JCarty wrote:
Mark, I'm not sure if this is related but if I enter and quickly leave my app (which has the view on launch), the home screen is painted with the last viewable image on the viewfinder until orientation changes or the screen is scrolled.

If its not related, I can add it to Issue Tracker to see if its reproducible.

That sounds like a different issue.  Please log it.  Thanks!

 

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker