How do some app make their service running (relaunching it) even after killed ? Can android have any way to boot on power connect? -


I have 2 questions:

  1. How do some Android apps serve Restart even if killed by the task manager? A good example is a lookout security app. Do I think it is registered for all normal events which have been announced like an app installs - absentee, internet access, etc. Is this a way to run your service? I found that another solution was done to monitor each other two services, so which one would be a reasonable perspective if someone was killed to restart each other?

  2. Once in the Android (if the device is off) to start booting automatically when connected to a power source? I've never heard it on mobile platform. This is possible by the BIOS facility for PC. Can it be done on Android? Any ideas would be welcome.

1) It's easy. All you have to do is to service. Return services from services from onStart () method It asks Android OS to resume the service, which is executed at any time with a call from stopService ()

2). The only way to modify the firmware is possible when the phone closes the phone, then the Android OS has not yet started, so there is no way to create an application that can be run before the OS is bootable.


Comments