/ Published in: Java
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "My Tag"); wl.acquire(); // You code here wl.release();