android - ON_AFTER_RELEASE-flag doesn't work consistently -
after i'm releasing wakelock, want screen stay on duration of user's display timeout system setting, believe on_after_release-flag does. works fine on device (gnex, 4.3), lot of users (mainly on 4.3) reporting screen switches off after releasing wakelock.
//to acquire wl: wl = pm.newwakelock(powermanager.screen_bright_wake_lock | powermanager.on_after_release, tag); @override public void onpause() { super.onpause(); if (wl != null) { if (wl.isheld()) { wl.release(); } }
am doing wrong?
you should try use powermanager.flag_keep_screen_on
instead of screen_bright_wake_lock
flag. there can issues because of different wakelock implementations on different devices. when have similar problem switching flag helped me.
Comments
Post a Comment