You might want to note that the apps you are talking about use *foreground* services.
Having an everlasting service is typically an Android antipattern, but guess what, so are apps like advanced task killer! :-) ... (or for that matter, any app which attempts to perform system level operations..) However, there is a difference between a background service and a foreground service: your service won't be killed if it is foregrounded, I believe that (in both of the cases you mentioned) this is what is happening: otherwise you will see the app die rather quickly. kris On Tue, Dec 11, 2012 at 9:14 AM, Bajrang Asthana <[email protected]> wrote: > Hi, > > I want to know how to start service at boot time? I am wondering how do > apps like Easy Battery Saver or Open Advanced Task Killer work? > They must be starting at boot time because we don’t see their UI when we > boot the device. Also they must be somehow taking care that they are not > killed or they get restarted if they are killed by OS. Is starting service > at boot time possible in Android 3.1+ > > > thanks > Baj > > > -- > 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 -- 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

