11-30-2010 03:44 PM
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.
Solved! Go to Solution.
11-30-2010 05:43 PM
I'm having this issue on 22.214.171.1247 (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.
11-30-2010 06:59 PM
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.
11-30-2010 07:36 PM
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....
11-30-2010 07:58 PM - edited 11-30-2010 07:59 PM
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.
12-01-2010 02:12 PM
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.
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.
12-01-2010 02:21 PM
12-01-2010 02:21 PM
12-01-2010 02:55 PM
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!