1. Download our Official Android App: Forums for Android!

Kill an active task?

Discussion in 'Android Apps & Games' started by digit27, Sep 25, 2012.

  1. digit27

    digit27 Member
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    32
    Joined:
    Sep 23, 2012

    Sep 23, 2012
    32
    0
    15
    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 Newbie
    Rank:
    None
    Points:
    15
    Posts:
    21
    Joined:
    Oct 4, 2012

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

    SUroot Android Expert
    Rank:
    None
    Points:
    1,123
    Posts:
    23,925
    Joined:
    May 25, 2010

    May 25, 2010
    23,925
    5,304
    1,123
    UK Technical Lead; Desktop Support
    Riddlesden, West Yorkshire, UK
    Sure.

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

    gkf9 Member
    Rank:
    None
    Points:
    16
    Posts:
    48
    Joined:
    Aug 2, 2012

    Aug 2, 2012
    48
    3
    16
    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
    Rank:
    None
    Points:
    1,343
    Posts:
    16,881
    Joined:
    Apr 20, 2011

    Apr 20, 2011
    16,881
    7,193
    1,343
    Work to live, not the other way round!!
    Sheffield, South Yorkshire
    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 Android Expert
    Rank:
    None
    Points:
    1,123
    Posts:
    23,925
    Joined:
    May 25, 2010

    May 25, 2010
    23,925
    5,304
    1,123
    UK Technical Lead; Desktop Support
    Riddlesden, West Yorkshire, UK
    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 Android Expert
    Rank:
     #103
    Points:
    273
    Posts:
    2,716
    Joined:
    Jan 27, 2010

    I'm feeling dense. How do you add an exit task?
     
  8. davoid

    davoid Android Expert
    Rank:
    None
    Points:
    223
    Posts:
    1,801
    Joined:
    Aug 3, 2011

    Aug 3, 2011
    1,801
    710
    223
    London
    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 Android Expert
    Rank:
    None
    Points:
    1,123
    Posts:
    23,925
    Joined:
    May 25, 2010

    May 25, 2010
    23,925
    5,304
    1,123
    UK Technical Lead; Desktop Support
    Riddlesden, West Yorkshire, UK
    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 Member
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    32
    Joined:
    Sep 23, 2012

    Sep 23, 2012
    32
    0
    15
    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 Android Expert
    Rank:
     #103
    Points:
    273
    Posts:
    2,716
    Joined:
    Jan 27, 2010

    In the Task area tap the magnifying glass.
     

Share This Page

Loading...