Page 1 of 1

Notification Toggle

Posted: 19 Sep 2014 12:05
by xpdev
Hi

There is a trigger (or a different thing) for when a user
Press a toggle (WiFi,GPS,airplane mode ecc) on pull down window ?

Thanks

Re: Notification Toggle

Posted: 19 Sep 2014 13:03
by MURTUMA
Not really, but there is SYSTEM SETTING CHANGED trigger which is what you want.

Re: Notification Toggle

Posted: 23 Sep 2014 15:47
by xpdev
Hi guys

i'm not able to use in the right way "SYSTEM SETTING CHANGED" to see when user click on
a toggle (WiFi,GPS,airplane mode ecc) on pull down window.

Someone help me ?

I'm on a custom rom KK 4.4.4

Thanks.

Re: Notification Toggle

Posted: 23 Sep 2014 18:29
by MURTUMA
If the trigger doesn't work it's either a bug in the trigger or you're doing it wrong.

Please tell more specifically what doesn't work and what have you tried to do?

Re: Notification Toggle

Posted: 23 Sep 2014 19:23
by kintrupf
xpdev wrote:There is a trigger (or a different thing) for when a user
Press a toggle (WiFi,GPS,airplane mode ecc) on pull down window ?
There are triggers for almost all settings:

Trigger for Bluetooth:
Bluetooth State
Bluetooth Device Connected
Bluetooth Device Disconnected

Trigger for GPS:
Location Provider State

Trigger for NFC:
NFC State

Trigger for WiFi:
WiFi State
WiFi Connected
WiFi Disconnected

Trigger for Airplane Mode:
Airplane Mode (what else ;-))

Take a look here, all available triggers are listed and explained:
http://automagic4android.com/en/help/co ... s-triggers

Re: Notification Toggle

Posted: 23 Sep 2014 20:25
by xpdev
MURTUMA wrote:If the trigger doesn't work it's either a bug in the trigger or you're doing it wrong.

Please tell more specifically what doesn't work and what have you tried to do?

I'm not able to find parameters for "SYSTEM SETTING CHANGED", Category and name.

I need to get user click on Wifi toggle.


Thanks

Re: Notification Toggle

Posted: 24 Sep 2014 07:16
by xpdev
OK, i have found the way.

For mobile data

trigger "System Setting Changed"
category "Global"
name "mobile_data"