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

Simple remedy to 'Tasker' problem (to you maybe?)

Hi all

I've made the step from Setting Profiles to Tasker and it's a steep learning curve to say the least!

For my first basic attempt, I've just set it to have wifi + 3G always off unless I load up a net-based app like FB, Twidroid etc...and it works....sort of
redface.gif
- the two start up ok when I want net access but it's afterwards I'm struggling with.

I've put an exit task to switch them back off when closing the app - which it does - but I'd like to put a delay on it so that it switches off when I turn off the screen, not when I close the app ( I might want to run another app straight after, that also requires wifi/3G, but at the moment, the second I exit the app, wifi/3G turns off.... )

I asume it's done with the 'if' option but when I select 'screen' in the left hand box and then 'matches' in the middle 'condition operator', there's no 'OFF' option in the right hand side box.....
confused.gif


I'm obviously doing something fundamentally wrong here....can someone help me out?

Thanks for any help....

Edit: Found a work-around by having another profile that stipulates, screen off> wifi/3G off. I couldn't see how to just have the exit task pause the execution of net access off via screen-off
 
You need to use a variable for the screen if you want it in the same profile.

Read the Tasker user guide. You were in the right place, but for variables you will need to type in what the variable should be equal to. It's not a selection box, it's a free text box.

Also, check out the link in my signature.
 
Having two profiles is fine. Is there a problem with having 3g/Wifi turn off everytime the screen turns off?

If there is a problem with that (and it would be annoying if you were browsing the web and let the screen time out on you) then you can use variables as amlothi suggested.

But I think you'll still use two profiles. In the exit profile of the original task, you won't turn 3g and wifi off, but instead set a variable (lets call it %DataOff) to True.

Then in the Screen off profile, instead of simply turning the screen off everytime, you'll check to see if the variable is set to true. So it would look something like this:

If variable %DataOff equals True
then turn wifi off
then turn 3g off
then set variable %DataOff to False
EndIf

That should do it and it will only turn 3g and data off the first time the screen is turned off after exiting one of the apps you have listed in the original task.
 
Back
Top Bottom