Page 1 of 1

Reset brightness to previous value

Posted: 25 Feb 2013 17:06
by SaschaHa
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 :)

Re: Reset brightness to previous value

Posted: 26 Feb 2013 13:50
by Martin
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.

Re: Reset brightness to previous value

Posted: 02 Mar 2013 14:10
by SaschaHa
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!

Re: Reset brightness to previous value

Posted: 29 Mar 2014 11:19
by varunchitalia
+1

Re: Reset brightness to previous value

Posted: 31 Mar 2014 08:56
by bichlepa
+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.

Re: Reset brightness to previous value

Posted: 01 Apr 2014 20:07
by Martin
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.

Re: Reset brightness to previous value

Posted: 02 Apr 2014 05:52
by bichlepa
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.