Android Question Create a service that will start the service of another app

Mark Ryan Penafiel

Member
Licensed User
Longtime User
I am building an app with long running service which should be killed. It works fine for lower version of android but for android 4.4, it seems to be killed.
I already made it as foreground , placed the code:

#StartCommandReturnValue: android.app.Service.START_STICKY

After 2-3 days, the apps seems to be killed.

I read in other forums that this is bug for android 4.4. so to remedy this, i am thinking of a watching app. if main app is killed by the OS, or atleast the service, the watcher app will check the status of the service of the main app, and start it again,

Please guide me how will be done

Thanks
 
Top