android - Turning screen on again after display timeout? -


my activity starts following code in order shown above keyguard/turn screen on standby:

@override public void onattachedtowindow() {     this.getwindow().setflags(windowmanager.layoutparams.flag_fullscreen |              windowmanager.layoutparams.flag_dismiss_keyguard |              windowmanager.layoutparams.flag_show_when_locked |              windowmanager.layoutparams.flag_turn_screen_on,             windowmanager.layoutparams.flag_fullscreen |              windowmanager.layoutparams.flag_dismiss_keyguard |              windowmanager.layoutparams.flag_show_when_locked |              windowmanager.layoutparams.flag_turn_screen_on); } 

this works fine, however, activity receives intent after few seconds (30-45s) , on devices, default system display timeout have kicked in if user hasn't touched device. there way show activity again sleep when intent comes in? i've tried acquiring "screen-on"-wakelock when new intent arrives, no dice. thanks!


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -