On Wed, Jan 12, 2011 at 3:17 AM, Dianne Hackborn <hack...@android.com> wrote:
> If you want to avoid work when it starts every 5 minutes, keep your
> previous work in static globals to re-use the next time the service is
> created.

To clarify, you will need to ensure that you can reload those static
globals as needed. While the process probably sticks around between
alarms, it might not, in which case those globals will be null and you
will have to regenerate that data. Consider these static globals to be
an optimization, not a load-bearing beam of your app.

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