Service is bound to acrtivity, this kind of service you can control. So if service has encounted an OutofMemoryError, the OS could restart your activity, you can restart your service in the activity, eg, OnCreate, OnRestart.
On Tue, Aug 10, 2010 at 7:34 AM, doug <doug_a...@yahoo.com> wrote: > Hello, > > If my service encounters an OutofMemoryError when creating new > objects, what can I do to tell Android to restart my service later? I > thought about Alarm but then I can't create a pending intent in the > OutofMemoryError situation... > > Thanks, > doug > > -- > 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<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- 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