Hello,
I want to end a started app after 9 hours
but the app will not stop
Stop app after time
Moderator: Martin
Stop app after time
country: Germany
language: German
Writing & Read via Google Translate
Samsung S10+ (SM-G975F)
Android 9.0.0
One UI-Version 1.1
* NO ROOT *
*Status Offiziell *
language: German
Writing & Read via Google Translate
Samsung S10+ (SM-G975F)
Android 9.0.0
One UI-Version 1.1
* NO ROOT *
*Status Offiziell *
Re: Stop app after time
Action Kill app can't kill app in foreground. You have to add action Show Home Screen first, then kill App.
BTW, it is not efficient to use sleep as long as 9 hours. It will create unnecessary wakelock, which keep your CPU awake and drain your battery much faster. (unless keep awake is one of your purpose). Better use Trigger Global Variable Date/Time in another flow. Set the timer to 9 hours in the future. You can create the glovar such as this
Then use global_kill_app_timer in another flow with the trigger Global Variable Date/Time
BTW, it is not efficient to use sleep as long as 9 hours. It will create unnecessary wakelock, which keep your CPU awake and drain your battery much faster. (unless keep awake is one of your purpose). Better use Trigger Global Variable Date/Time in another flow. Set the timer to 9 hours in the future. You can create the glovar such as this
Code: Select all
global_kill_app_timer = addHours(triggertime, 9);
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.