Stop app after time

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
OhLeut
Posts: 14
Joined: 06 Apr 2019 10:21

Stop app after time

Post by OhLeut » 18 Aug 2019 10:16

Hello,
I want to end a started app after 9 hours
but the app will not stop
Screenshot_20190818-113743.jpg
Screenshot_20190818-113743.jpg (19.53 KiB) Viewed 437 times
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 *

User avatar
Desmanto
Posts: 1981
Joined: 21 Jul 2017 17:50

Re: Stop app after time

Post by Desmanto » 19 Aug 2019 05:28

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

Code: Select all

global_kill_app_timer = addHours(triggertime, 9);
Then use global_kill_app_timer in another flow with the trigger Global Variable Date/Time
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), Resurrection Remix Official 7.0.2 20190829, Pie 9.0, Rooted.

Post Reply