On Jul 6, 4:15 pm, Dianne Hackborn <[email protected]> wrote:
> If you need a Surface, you need to have your UI running in the foreground.
>  That is just the way it is.

Dianne,

Ah, so it is. I was a little confused because the camera kept on
working even though I had backgrounded the Activity that contained the
SurfaceView on which the preview was rendering. But when I added a
SurfaceHolder.Callback to the view's holder, it the surface is indeed
getting destroyed when I background the app, even though the activity
is apparently just paused. So I guess that Surface object that's still
being used by the camera while my Activity is paused could be
destroyed at any time, causing an ugly crash.

-- James

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

Reply via email to