How do some app make their service running (relaunching it) even after killed ? Can android have any way to boot on power connect?
<p>I have 2 questions:</p>

<ol>
<li><p>How do some android app make their service restart even if killed from task manager? A good example is Lookout security app. What I guess is that it has registered for all common events that are announced like app installed - unistalled, interenet available ,etc.
Is this a way to keep your service running ?
Another solution I found was to make 2 services monitoring each other, so if one gets killed restart another.
Which one would be a proper approach ? </p></li>
<li><p>Is there any way in android to start booting automatically(if device is switched off) once connected to power source ? I have never heard this on mobile platform.
This is possible for PC through bios feature. Can it be done on android ? Any ideas welcome.</p></li>
</ol>
