I need an Idea

Post your questions and help other users.

Moderator: Martin

Post Reply
Compasdot
Posts: 10
Joined: 16 Jun 2015 03:01

I need an Idea

Post by Compasdot » 07 Jan 2016 04:04

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 ☺

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: I need an Idea

Post by Martin » 07 Jan 2016 20:14

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

Post Reply