Keep apps alive

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
wfrcrd
Posts: 116
Joined: 27 May 2015 08:57

Keep apps alive

Post by wfrcrd » 02 Jul 2016 18:45

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 !

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Keep apps alive

Post by Martin » 03 Jul 2016 12:10

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

wfrcrd
Posts: 116
Joined: 27 May 2015 08:57

Re: Keep apps alive

Post by wfrcrd » 03 Jul 2016 18:34

Thanks a lot!

User avatar
Bushmills
Posts: 286
Joined: 23 Sep 2014 21:56

Re: Keep apps alive

Post by Bushmills » 03 Jul 2016 23:55

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.

Locked