gudujarlson wrote:
> What I want to prevent is draining the user's battery when they go
> inside where there is no GPS signal and forget to turn off the app.

Monitor the ACTION_SCREEN_OFF and ACTION_SCREEN_ON Intents, then. If
your application starts based on a user action, then you know the screen
is on at that point -- you don't need an API for that.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_
Version 1.2 Available!

-- 
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