How do I stop the device from going to sleep?

My app uses the accelemetrometer, not touches which would usually keep the screen awake…

in the Mainactivity call acquire in the onCreate (don’t forget to call super.onCreate) and call release in the onStop method (and don’t forget to call the super.onStop)