CoderzHeaven

These are the different ways in which you can keep your screen on in your app

1. Declare the screen stays on in your XML layout2. Inform the window manager in onCreate you want the screen to stay on3. WakeLock – used for critical downloads or things that you definitely don’t want the Android system shutting down for