i have a foreground service detecting a shake event in order to lock / unlock the screen... i can lock the screen but im not finding a way to wake screen up:
my service:
if (mAccel > 31) {
if (count=="1"){ count = "2";
ToneGenerator toneGen1 = new ToneGenerator(AudioManager.STREAM_MUSIC, 100);
toneGen1.startTone(ToneGenerator.TONE_CDMA_PIP,150);
deviceManger .lockNow() ;
} else if (
count=="2") {
count = "1";
ToneGenerator toneGen1 = new ToneGenerator(AudioManager.STREAM_MUSIC, 100);
toneGen1.startTone(ToneGenerator.TONE_CDMA_PIP,250);
};