What part of the code in the four sample APK projects listed here for Google Glass prevents the screen from dimming?
When I write my own APK and sideload it, after t
The only way that worked for me was by acquiring a wakeLock:
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); WakeLock wakeLock = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK , TAG); wakeLock.acquire(WAKE_LOCK_DURATION_IN_MILLIS);
You also need a permission for that: