2009/11/18 Cédric Berger <cedric.berge...@gmail.com> > So now that (I think) I understand what this "force stop" is really > about (completely and definitely stopping an app) : > > Are there situations where it is done by the system (automatically) ? > (ie. in case it is too low on memory). >
Nope, definitely never ever. The user must explicitly request this. > Or can I be sure that when it is the system that kills Services, it > never does anything else (such as unregistering alarms) ? By definition it does everything described: kill all processes, stop all services, unregister all alarms, remove all notifications. And possibly more, too. > And in this > case, will such a stopped service be restarted automatically, or only > if it took care of such a situation (by ex. with a "watchdog" alarm > which will eventually restart it if stopped). > No, it is intended for the user to make an app stop. The services with not be restarted; they are stopped. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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