Trying to get camera at full brightness

Andy-in-Ireland

New member
I tried to do another trigger - I thought it would be so simple ... but it didnt work. There must be something I am missing here :

1706642023598.png

so, what I want macrodroid to do is that when I start up the phone's stock camera , turn the brightness on the screen to 100% - that's all.

does anyone know what I have done wrong? - Phone is Samsung A52 5G (not rooted)

Thanks.
 

Andy-in-Ireland

New member
Ok , a bit of an update - I have it working now - so when I start up the stock camera the screen does go full brightness 100% .. brilliant!
However its not all plain sailing. When I have finished taking my photos and go back to the phone's Homescreen I want the brightness to turn back to the normal brightness it was before, but its still at 100%
Does anyone know what I have to change in macrodroid to achieve it going back to previous brightness when I go back to Homescreen please?
 

mapriex

Active member
add an action with if condition: "camera app not in foreground". at the start you basically need to read the current brightsetting and write it in a local variable.
adding another trigger for camera closing.
add another action with if condition: camera app not in foreground: set brightness to the saved variable

thats the basic instructor, but i didnt check if you can save the brightness in a variable and set brightness with an integer or decimal.
 

Andy-in-Ireland

New member
add an action with if condition: "camera app not in foreground". at the start you basically need to read the current brightsetting and write it in a local variable.
adding another trigger for camera closing.
add another action with if condition: camera app not in foreground: set brightness to the saved variable

thats the basic instructor, but i didnt check if you can save the brightness in a variable and set brightness with an integer or decimal.

Thank you for that - sorry I am a newbie with this macrodroid app - I could not understand all what to set that at but this is what I set the trigger to but it did not work :

1706657524262.png
 

Dm114

Well-known member
Try this.
If you usually have auto brightness enabled in your phone you could skip variable and in action brightness (at the bottom) configure it to go to autobrightness instead
Be careful as Application Closed trigger not always fire, it's not always reliable.

So, to be sure active app (Camera) has been closed, you can add another Application Launched trigger (for Launcher, for instance). Otherwise, if usage of the Camera doesn't last a long time, you could make a n times loop with a short wait (1 to 5 seconds) to test whether Camera app is still on foreground.
 

Andy-in-Ireland

New member
Try this.
If you usually have auto brightness enabled in your phone you could skip variable and in action brightness (at the bottom) configure it to go to autobrightness instead
Thanks ever so much for that - seems to work fine and as i wanted . Brilliant.
am going to experiment now and try and do the same but for the built in stock Samsung gallery and have that full brightness only when in gallery
 
Top