On Sun, Mar 18, 2012 at 10:58 PM, Tarak <tsri...@ipass.com> wrote: > Thanks Mark. Why can't timers or handlers be used ?. There is nothing in the > documentation of why timers or handlers cant be used to run tasks after 24 > hours. > AlarmManager is more heavy weight on the OS. The documentation says that > you must acquire a WAKE lock when processing the alarm, since the device can > go to sleep as soon as the Intent is processed. This behavior is also not > what we really want for the application. The application has a simple > requirement to run a task every 24 hours. >
Wait... this is just flat false. An alarm manager, which allows your app to safely be killed off and put away to be restarted later, that is lighter weight on the OS, than expecting that your app will constantly reside in memory on the device? This is *exactly* what an AlarmManager is for.. kris -- 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