Thank you, Dianne, that confirms my experimental observations with the
camera. For the future it would seem better and less heuristically
defined to decouple camera use from screen use, because it allows for
(modest) power savings in computer vision applications that send/store
their output elsewhere. However, it is not a major issue as long as
the camera is a main power hog.

I need a wake lock to keep the other sensors for location (GPS) and
orientation active, although with Android 2.2 orientation readings
still fail in standby due to issue 11028 
http://code.google.com/p/android/issues/detail?id=11028
despite using a wake lock. This is reportedly fixed with Android 2.3.

Thanks!

On Jan 26, 12:14 am, Dianne Hackborn <[email protected]> wrote:
> 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

Reply via email to