Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,778,037 Members 52,611 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Tasker and WIFI question

Tip us?
 
joelstitch
Old
(Last edited by joelstitch; 12th April 2014 at 06:12 PM.)
#1  
Senior Member - OP
Thanks Meter 30
Posts: 169
Join Date: Jan 2012
Location: Minneapolis
Default [Q] Tasker and WIFI question

I am trying to get Tasker to turn Airplane mode when the wifi is disconnected IF theres no cell signal and then turn airplane mode off again agter 2 seconds. At the momnt this is what I got:


Airplane mode ON using Secure Settings.
Not Wifi Connected >
Airplane mode OFF usinf Secure Settings

Airplane Mode ON:
1. Configuration: Airplane Mode Enabled
If: %CELLSRV ~ noservice

2. Wait 3 seconds

Airplane Mode OFF
Configuration: Airplane Mode Disabled
IF: %AIR ~ On

When I press the PLAY button on the task it does turns on Airplane mode but when I test it by turning off my wifi it shows that the Task is active but Airplane mode is not turned on.

what can I do?
 
joelstitch
Old
(Last edited by joelstitch; 12th April 2014 at 06:13 PM.)
#2  
Senior Member - OP
Thanks Meter 30
Posts: 169
Join Date: Jan 2012
Location: Minneapolis
So I think I got it working. I removed the Wifi Off part since I found it kinda useless for this profile. So now whenever I dont have any service for more than 10 seconds Tasker will turn on Airplane Mode on and 10 seconds after that it will turn it off.

Code:
State - Variable Value

%CELLSRV ~ noservice

TASK

1. Wait - Seconds - 10s
2. Secure Settings - Airplane Mode Enabled 
                              If: %CELLSRV ~ noservice
3. Wait - Seconds - 10s
4. Secure Settings- Airplane Mode Disabled 
                             If: %AIR ~ On
If anyone could test it and let me know if it works that would be great.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes