On Tue, Nov 1, 2011 at 2:24 AM, Belvedere Computer Services <fa829...@gmail.com> wrote: > normally in Java ~ which I am reading is the Primary Programming > Linguistic for this Android Platform one would run that with Timer and > TimerTask - the Alarm Manager is intended for cases where you want to > have your application code run at a specific time, even if your > application is not currently running.
Not necessarily. AlarmManager is also used for periodic events, particularly ones where the work is being done by a service that can go away between bits of work (e.g., IntentService). Timer/TimerTask requires you to keep a service in memory 24x7, which is an anti-pattern. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 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