• 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?

ldm1417

Member
Hi All,

Is there a way to kill a Tasker's task, which was started on the Device Boot and runs in indefenite loop (the loop is implemented inside of the task) ?

Thank you!
 
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:
Back
Top Bottom