Get preferred screen brightness in Android
How do you get the preferred screen brightness in Android? To change the screen brightness I use WindowManager.LayoutParams.screenBrightness . According to the documentation: This can be used to override the user's preferred brightness of the screen. A value of less than 0, the default, means to use the preferred screen brightness. 0 to 1 adjusts the brightness from dark to full bright. When screenBrightness is less than 0 I would like to start with the preferred screen brightness. How can I get this value? I'll try to answer because I already searched for this some time ago. My short answer