Reset brightness to previous value

Post your questions and help other users.

Moderator: Martin

Post Reply
SaschaHa
Posts: 3
Joined: 25 Feb 2013 16:57

Reset brightness to previous value

Post by SaschaHa » 25 Feb 2013 17:06

Hey, I made a flow that set my screen brightness to max (255) when some apps are in foreground. But I couldn't found out how to get back to the previous brightness (that I had before executing the flow) when I leave these Apps.

How to do that? It seems to be complicated.

Thanks for this great app! I'm on premium :)

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

Re: Reset brightness to previous value

Post by Martin » 26 Feb 2013 13:50

You can create a flow with a trigger App Task Ended and invoke an action Set Screen Brightness with the value you like. There exists no action to store/restore the screen brightness.

SaschaHa
Posts: 3
Joined: 25 Feb 2013 16:57

Re: Reset brightness to previous value

Post by SaschaHa » 02 Mar 2013 14:10

Ok thanks.

It would be great, if such a feature could be integrated in a future version. Not only for brightness, but also for the most values or parameters that are changed within a flow :)

Best regards!

varunchitalia
Posts: 2
Joined: 29 Mar 2014 09:29

Re: Reset brightness to previous value

Post by varunchitalia » 29 Mar 2014 11:19

+1

User avatar
bichlepa
Posts: 148
Joined: 04 Mar 2014 18:29
Location: Germany
Contact:

Re: Reset brightness to previous value

Post by bichlepa » 31 Mar 2014 08:56

+1

I'd like to write a flow whitch wil automatically set the display brightness by using the Light Sensor. For that the Action "Set Screen Brightness" must accept variables.

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

Re: Reset brightness to previous value

Post by Martin » 01 Apr 2014 20:07

On newer Android version you can directly modify the settings database to change the screen brightness with action Set System Setting. Some older Android devices did not update the screen brightness immediately when this value was changed, but it should work on newer devices.
Set the Category of the action to System and Name to screen_brightness. Value is something between 0 and 255. Some older devices turn the screen off/entirely black when value 0 is used so it might be required to limit the value to a number between 1 and 255.
You can also use action Init Variable System Setting to read the currently set value into a variable.

User avatar
bichlepa
Posts: 148
Joined: 04 Mar 2014 18:29
Location: Germany
Contact:

Re: Reset brightness to previous value

Post by bichlepa » 02 Apr 2014 05:52

Unfortunately on my Galaxy S2 plus with Android 4.1 it doesn't work.
I can successfully change the creen_brightness_mode but not screen_brightness.

Post Reply