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 !
Keep apps alive
Moderator: Martin
Re: Keep apps alive
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
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
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.