> Do you
> set an alarm to trigger even minute or would that also drain the
> battery?

Ideally, you let the user choose:

http://www.androidguys.com/2010/03/29/code-pollution-background-control/

> Do you trigger an update only when the screen is turned on?
> Can that even be detected?

There are ACTION_SCREEN_OFF and ACTION_SCREEN_ON broadcast Intents,
but it is simpler to just use a non-wakeup alarm with AlarmManager.

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

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to