How to set the screen brightness in the android application below the minimum?
1 answer
Impossible. And even if it is possible, it will be installed not only in your application and it cannot be done without root . But you can implement the night mode. Through FrameLayout put on top of the entire markup LinearLayout with a black background . And to make the brightness "below the minimum" - control the degree of transparency of the background
- cool, about the black background, the phone starts to slow down? Or will it “glow” black?) If it happens at all, I don’t rummage) - Maxgmer
- oneI remember adding such functionality to one application, users mostly played at night, there were privileges. did not complain, everything was fine. No, it does not light) excellent night mode. the only thing that shone as usual was everything that was not included in the markup - the status bar and the keyboard. I removed the first for fullscreen, I decided to put up with clave)) - Flippy
- clear, interesting, but I just saw such a thing: in Pokemon Go there is a power saving mode, so there you can tilt the phone and the screen goes completely 100%, it would be interesting to find out the implementation. - Maxgmer
- one100% it works just like I did. In general, interested - can decompile, find this code? - Flippy
- I think it will be difficult to decompile, the money earned dohera, probably the defense of the norms has already been done, even though the game has recently come out. trashbox.ru/link/pokemon-go-android here if anything can be downloaded, but I do not know how to decompile - Maxgmer
|