Please look at adding a feature to automatically wake up the device when compile/run the app. Also remove screen lock screen, of course an unsecure one only.
Note that you can currently achieve this effect by going to the Developer options and check Stay awake. The device will stay awake while charging (until you press the power button).