android studio emulator stay awake
1. I have this problem because I changed the Charger Connection
to none under the Battery menu of the emulator.
Turning it back to AC Charger stopped the screen being turned off.
2. In your emulator go to Settings -> Display -> Sleep,
change to 30 minutes.