I believe the only way to ensure the camera continues operating is to keep the screen on. All you need to do is keep the screen on, you don't need to hold a wake lock.
On Tue, Jan 25, 2011 at 1:00 PM, blindfold <[email protected]>wrote: > I noticed that in Android 2.2 and earlier I must do either a > FULL_WAKE_LOCK or a combination of PARTIAL_WAKE_LOCK and > FLAG_KEEP_SCREEN_ON to make sure the camera does not get turned off > after a while with my app in the foreground (and I need a wake lock to > keep GPS going). The underlying assumption seems to be that the camera > is not useful when the screen is off, but that assumption is false for > computer vision applications where not the user but the program is > watching the camera view. Is this fixed in Android 2.3 (Gingerbread)? > > Thanks > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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

