Screen Brightness and Variables

Post your questions and help other users.

Moderator: Martin

Post Reply
ma11en
Posts: 7
Joined: 24 Aug 2013 10:57

Screen Brightness and Variables

Post by ma11en » 18 Feb 2014 20:30

Hi,

I was wondering if it is possible to set the screen brightness value from a variable please.

Regards Mark

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

Re: Screen Brightness and Variables

Post by Martin » 19 Feb 2014 17:55

Hi,

Sorry no, the action to set the screen brightness does not support variables.

Regards,
Martin

ma11en
Posts: 7
Joined: 24 Aug 2013 10:57

Re: Screen Brightness and Variables

Post by ma11en » 19 Feb 2014 22:05

Thanks for replying Martin, could I put this in as a feature request please.

I'm liking the interaction between Automagic and Zooper and it would be a useful addition.

Regards Mark.

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

Re: Screen Brightness and Variables

Post by Martin » 20 Feb 2014 17:01

Hi,

I have to correct myself, it's not very comfortable but you could use action Set System Setting to set screen_brightness to a value between 1 and 255 or with a variable replacement like {brightness}. Newer Android versions should automatically apply the new brightness when the setting is modified.
You can also read the current value stored in the system settings database with action Init Variable System Setting and store it in a variable.

Regards,
Martin

ma11en
Posts: 7
Joined: 24 Aug 2013 10:57

Re: Screen Brightness and Variables

Post by ma11en » 22 Feb 2014 10:00

Thanks again Martin,

I'll give it a go.

Regards Mark.

ma11en
Posts: 7
Joined: 24 Aug 2013 10:57

Re: Screen Brightness and Variables

Post by ma11en » 23 Feb 2014 11:54

Hi Martin,

One final thanks, I have tried this method and it works just as I wanted.

Regards Mark.

Post Reply