It's a huge huge waste of resources for you to have the system keep your app running forever to just have a timer go off every 5 minutes or more. Please use the alarm manager instead.
On Oct 27, 10:24 pm, Eric B <[EMAIL PROTECTED]> wrote: > I have created a service that runs a Timer and TimerTask. That timer > may fire every 5 minutes to 4 hours, depending on the user's > settings. My problem is that my service eventually gets destroyed. > Is there a setting to keep it alive, or someway to tell the OS to > restart it once enough resources are available? > > In addition, I'm not sure my implementation is the most sound. What's > the best way run a TimerTask as a background process? > > Thanks, > Eric --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

