Airplane Mode Status and IF-Statement

218 views
Skip to first unread message

tasker-fan

unread,
Mar 30, 2013, 4:53:10 PM3/30/13
to tas...@googlegroups.com
Hi,

I want to check if airplane modus set or not. How to check content of %AIR?
If I flash %AIR, it seems to have the values on or off
But IF-Statement "%AIR matches on" seems not to work for me :-(
"is set" seems to be always true, because it has always a valid content, isn't

But how can I check in a if-else-block, if airplane modus activ or not ??

Frank

Matt R

unread,
Mar 30, 2013, 10:41:03 PM3/30/13
to tas...@googlegroups.com
Male sure your keyboard isn't adding any whitespace after the on (though I think Tasker is supposed to trim trailing whitespaces). Also, make sure it's all lowercase (on not On).

Matt

tasker-fan

unread,
Mar 31, 2013, 8:26:58 AM3/31/13
to tas...@googlegroups.com
Thanks for your hint
I used it already as you described
but I found the reason :-)

with Jelly Bean tasker can not switch Airplane mode anymore, I had to use secure settings plugin
Tasker seems not to recognize the switch immediatly, so my if-statement don't work
I changed code now, use an own variable, where I store old airplan modus, before switch by secure settings plugin.
Later I use this own variable for if-statement, now task works as wanted perfectly :-)
Reply all
Reply to author
Forward
0 new messages