[android-developers] Re: Widget process lifetime: Why not stop the service?

2009-05-24 Thread Dianne Hackborn
On Sat, May 23, 2009 at 12:50 PM, Michael Elsdörfer mich...@elsdoerfer.info wrote: From what I understand, a service must be used in any case to avoid ANR when processing the request might take a bit longer. Oh sure, if you are going to do some longer-running -continuous- work then use a

[android-developers] Re: Widget process lifetime: Why not stop the service?

2009-05-23 Thread Dianne Hackborn
Don't use a service; use the alarm manager to schedule your wakeup/work. On Sat, May 23, 2009 at 9:38 AM, Michael Elsdörfer mich...@elsdoerfer.infowrote: I'm writing a widget that needs to update rather infrequently (say multiple hours). Following the source examples out there, it seems the

[android-developers] Re: Widget process lifetime: Why not stop the service?

2009-05-23 Thread Michael Elsdörfer
Don't use a service; use the alarm manager to schedule your wakeup/work. Currently I'm actually using the widget framework's update mechanism. From what I understand, a service must be used in any case to avoid ANR when processing the request might take a bit longer. The widget example