Page 1 of 1

Keep apps alive

Posted: 02 Jul 2016 18:45
by wfrcrd
Hi to everyone,
I'm sorry if the topic has been already discussed,
but one of most annoying feature of android is the autokill apps wich we like to maintain active.
I've tried several way to preserve those apps to be killed without any good result.
So I ask if it's possibile (with a proper trigger) to monitor if one app is alive or not and if it has been killed
from the sistem,to restart it suddendly.

What trigger may I use to check if the app it's alive?
And what action to restart the app ?
Thank you !

Re: Keep apps alive

Posted: 03 Jul 2016 12:10
by Martin
Hi,

There's no trigger to detect this since Android does not send any events for this purpose. You could periodically check condition App Process Running to see if the process of an app is still available and restart the app with action Launch App if not.

Most apps that are designed to permanently run in the background should contain services that are restarted by Android automatically after it had to be killed. Important services should run in foreground priority by showing a permanent notification. If Android also kills such apps, you could ask the developer of the app to add an accessibility service which will increase the priority of the app so it's less likely that Android kills it.

Regards,
Martin

Re: Keep apps alive

Posted: 03 Jul 2016 18:34
by wfrcrd
Thanks a lot!

Re: Keep apps alive

Posted: 03 Jul 2016 23:55
by Bushmills
Having plenty of RAM should eliminate the need of apps getting killed. Otherwise, they may get killed for good reason, in which case removal of memory hogs could be beneficial. For example, choice of launcher can make a difference of 500 or even more percent.