I\'ve written a small game, that is only controlled via some sensors. There is no touchscreninput or something similar.
The problem is, that after a few seconds of g
use WakeLock
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
WakeLock mWakeLock = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK | PowerManager.ON_AFTER_RELEASE, "My Tag");
mWakeLock.acquire();
and put the permission in your manifest file
dont forget to release that lock in your onStop()