You can use the AlarmManager1 class to fire off an intent that starts your activity and acquires the wake lock. This will turn on the screen and keep it on.
I need to turn off the WiFi a while after pressing the " Turn off the Screen" button.
There is a need for this app for my tablet because sometimes I just forget to turn off. Don' t Sleep is a small portable Windows program to prevent system shutdown, Standby, Hibernate, Turn Off and Restart. Especially when old Programs run on Windows- 10 or Windows 8.
Here' s more aggressive power- saving features with new rules. But not only that, it also prevents login off the computer, and the deactivation of the monitor or activation of the screen saver.