1. Introducing Channels - a new way to chat with other Android users!
    Dismiss Notice

Kill an active task?


Last Updated:

  1. digit27

    digit27 Active Member This Topic's Starter

    Joined:
    Sep 23, 2012
    Messages:
    32
    Likes Received:
    0
    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?
     

    Advertisement
  2. erda0

    erda0 Member

    Joined:
    Oct 4, 2012
    Messages:
    21
    Likes Received:
    0
    I don't think it's can be done with Tasker.
    but I know that "Autorun manager" app can do it.
     
  3. SUroot

    SUroot Well-Known Member Developer

    Joined:
    May 25, 2010
    Messages:
    23,925
    Likes Received:
    5,302
    Sure.

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

    gkf9 Well-Known Member

    Joined:
    Aug 2, 2012
    Messages:
    48
    Likes Received:
    3
    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.
     
  5. D-U-R-X

    D-U-R-X turbo drinker Moderator

    Joined:
    Apr 20, 2011
    Messages:
    16,881
    Likes Received:
    7,191
    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?
     
  6. SUroot

    SUroot Well-Known Member Developer

    Joined:
    May 25, 2010
    Messages:
    23,925
    Likes Received:
    5,302
    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
     
    bberryhill0 and D-U-R-X like this.
  7. bberryhill0

    bberryhill0 Well-Known Member

    Joined:
    Jan 27, 2010
    Messages:
    2,606
    Likes Received:
    411
    I'm feeling dense. How do you add an exit task?
     
  8. davoid

    davoid Well-Known Member

    Joined:
    Aug 3, 2011
    Messages:
    1,792
    Likes Received:
    700
    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.
     
    bberryhill0 likes this.
  9. SUroot

    SUroot Well-Known Member Developer

    Joined:
    May 25, 2010
    Messages:
    23,925
    Likes Received:
    5,302
    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.
     
    bberryhill0 likes this.
  10. digit27

    digit27 Active Member This Topic's Starter

    Joined:
    Sep 23, 2012
    Messages:
    32
    Likes Received:
    0
    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.
     
  11. bberryhill0

    bberryhill0 Well-Known Member

    Joined:
    Jan 27, 2010
    Messages:
    2,606
    Likes Received:
    411
    In the Task area tap the magnifying glass.
     

Share This Page

Loading...