I already know where to begin, at least by WakeLock class, but I can only call methods on and off the screen ... I do not know the simplest way to terminate a while for the screen to begin start off .. (brightness decreases slightly before turning off completely).
Thank you! I hope I have expressed myself right.