I am designing a game in which the player has to change the brightness of his phone in order to pass to the next level.
The idea I have is that there might be an android-permission to allow detect a change in the brightness level.
So my question is that how do I use it in my app.
Thanks in advance.