>
> What are your symptoms for the "global in scope" part?
>
Global in scope meaning that no matter where we get/set camera parameters, a 
subset of those parameters are now always null (on get) where before they 
were not.  The most noticeable parameter is the preview size.

Also related is we've noticed that when pausing (onPause) the stock video 
player, the media/camera services are crashing.  In our case, we are going 
from the video player back to our app.  This is how we are repro'ing the 
black screen issue, it almost seems like we are hitting a race condition 
where we try to initialize the camera object before the service has 
restarted.  Unfortunately I don't know of a way to determine when this 
service has restarted.

> These sample apps use Camera.Parameters inside of surfaceChanged()
> without issue on a Nexus S:
>
> https://github.com/commonsguy/cw-advandroid/tree/master/Camera/Preview
> https://github.com/commonsguy/cw-advandroid/tree/master/Camera/Picture
>
Your sample code is incredibly similar to ours for the basic tasks of 
getting the optimal preview size and initializing/pausing the camera.  The 
main functional difference is the use of autofocus & callback for 
processing.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to