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

Kill an active task?

digit27

Newbie
Is there a way to kill a task that has started? Say I have a task that is waiting, can I kill it with another task?
 
Is there away to stop an app running in the background? I've set up a car mode to open a sat nav app, but I can't or know how to stop it running in the background after I've exited the app ie the navigation keeps going on in the background.

Thanks.
 
could you not set up a widget, so you can toggle car mode on when you get in the car and set it up so that when you toggle car mode off, it exits navigation?
 
If your car mode is set up using a state rather than event, you can add an exit task to the car mode task you already have. That could be Application > Kill application
 
If you long press on your task within the profile, a mini menu appears and one of the options is to create an exit task. :)

You're not dense; Tasker isn't very intuitive and it's hard to find how to do things.
 
Although if the context is an event, you cannot add an exit task (because an event lasts a split second so it would exit after that split second) - so the option doesn't appear. Maybe this is not all events but certainly the ones I've tested.

Usually the exit tasks work better on states.

So if you had a profile...

context > Event > Docked
Task > "Car Mode"

This would need to be changed to

context > state > Docked
Task > "car mode"
Exit Task > "Kill App"

...so at the instant the state Docked ceases to be true, the profile exits, running teh exit task.
 
Sure.

New Task > Task > Stop > then browse the task you want it to stop.

Will this stop the task if it was currently 'waiting'....what I ended up doing to accomplish this was to add many small 'Waits' with a 'Stop-If' in-between each, instead of one long 'Wait'. If I could stop a 'Wait' task while its running, with another task, then I did a lot of unnecessary copy and pasting lol.

EDIT: I checked it out and this will not work because the 'Stop' command only works on the current task...there is nowhere to browse the task you want it to stop, from what I see.
 
Back
Top Bottom