Page 1 of 1

I need an Idea

Posted: 07 Jan 2016 04:04
by Compasdot
Martin
i cant find the process.
Actually I was trying to make a trigger, that allow me to toggle an option in two different actions using the same shortcut on home screen example : turning on / off mobile data using one shortcut

Another question, I can't find "restrict background data" in "Set System Setting" Action
Thank you, I will Appreciate your help ☺

Re: I need an Idea

Posted: 07 Jan 2016 20:14
by Martin
Hi,

You can either use a global variable with true/false to remember if you toggled the setting on or off the last time or you could use a condition Mobile Datanetwork Enabled and toggle it on or off depending on the current state.
Something like this could work:
-trigger Shortcut
-condition Mobile Datanetwork Enabled
--> true: action Set Mobile Datanetwork State: Off
--> false: action Set Mobile Datanetwork State: On

I'm also not aware about a way to change this setting. It's probably not part of the regular settings database. I add it to the todo-list to check if it's possible to add an action to toggle this setting. I assume that it will require root.
You could use action Control UI to simulate user input to toggle the setting (screen needs to be on and unlocked).

Regards,
Martin