Don't forget to make:
Using java Syntax Highlighting
wl.release();
Parsed in 0.030 seconds, using
GeSHi 1.0.8.4
after you have finished.
Or, you may also wake up your device whenever you want with auto-release by:
Using java Syntax Highlighting
PowerManager pm = (PowerManager) getSystemService (Context.POWER_SERVICE);
pm.userActivity(SystemClock.uptimeMillis()+ SCREEN_TIMEOUT, false);
Parsed in 0.030 seconds, using
GeSHi 1.0.8.4
where the
SCREEN_TIMEOUT is the timeout when the wake lock will be released (i.e. total time before sleep is
SCREEN_TIMEOUT + default device screen timeout .