Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

unlock the screen

PowerManager pm = (PowerManager) getApplicationContext().getSystemService(Context.POWER_SERVICE);
        mWakeLock = pm.newWakeLock((PowerManager.SCREEN_DIM_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP), "YourServie");
        mWakeLock.acquire();
        [...]
        mWakeLock.release();
 
PREVIOUS NEXT
Tagged: #unlock #screen
ADD COMMENT
Topic
Name
5+8 =