• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

[Tasker] how to kill a task by another task?

Use a global variable like %StopMe

In the task that is looping have it check the global variable for a predefine value each time it loops. If it matches terminate the loop.

The other task then just sets the predefined value when it wants the loping task to end.

If the tasks are separately compiled use an Intent to send the predefined value from one to the other.

… Thom
 
Last edited:
  • Like
Reactions: ldm1417
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones