1. Are you ready for the Galaxy S20? Here is everything we know so far!

Tasker - need help!

Discussion in 'Android Apps & Games' started by debitel, Feb 7, 2011.

  1. debitel

    debitel Lurker
    Thread Starter

    Hi all,

    I find tasker the best, but I do have a simple problem. If anyone can help me please:

    I would like tasker to tun on wifi when an app is started. This is simple.

    But I want tasker to keep wifi on for another 30 sec., when I exit the app, because I might enter another one that needs wifi.

    For example when switching from market to internet it turns off my wifi in between.

    So far I have profile:

    applications(market,internet) Enter task: wifi on

    Exit task?
    Wifi off just turns it off.


    1. Download the Forums for Android™ app!


  2. UncleMike

    UncleMike Android Expert

    If you have a single profile with all the desired apps selected in the Application context, you can handle this in the exit task. Let's assume that your profile is named "WifiApps", and that you want Wifi on for Market, Browser and Gmail.

    Profile: WifiApps
    Context: Application Market, Browser, Gmail
    Enter Task:
    Wifi On
    Exit Task:
    Wait 30 seconds
    Wifi Off If %PACTIVE% Doesn't Match ,WifiApps,

    This will turn on Wifi whenever Market, Browser or Gmail are in the foreground. When the profile exits, the exit task will wait 30 seconds, and then turn Wifi off only if the profile is not active. So if the profile becomes active within that 30 second window, Wifi won't be turned off.
  3. debitel

    debitel Lurker
    Thread Starter


    Thanks for the tip but it doesn't work. It stops wifi anyway.
  4. BookLover

    BookLover Android Expert

    Maybe you need to set the wait time to longer than 30 secs?
  5. debitel

    debitel Lurker
    Thread Starter

    I think minimum is 7 seconds.
  6. debitel

    debitel Lurker
    Thread Starter


    got it somehow.

    Enter task: set variable %NAME to 1
    turn on wifi
    Exit task:
    clera variable NAME
    waitt 30s
    turn off
    if NAME (doesn't match) 1

    That is is.
  7. nish88

    nish88 Lurker

    How did you add the 30 second delay highlighted..what menu options did you choose?
  8. nish88

    nish88 Lurker

    Ok found it. How would you add the condition to the above:
    if wifi is not connected after 10 secs, turn on 3g/mobile internet instead, and turn off wifi.


Share This Page