android - FLAG_KEEP_SCREEN_ON not undimming the screen -


i'm using following line of code on oncreate() methods of 2 activities:

getwindow().addflags(windowmanager.layoutparams.flag_keep_screen_on); 

the point of course, keep screen turned on , undimmed.

the point if screen dimmed -not turned off- before 1 of activities launched, screen maintain it's dimming until user touchs activity. after user interacts in way (touchevent or that, i'm assuming) activity device undimm screen , maintain way until user leaves activity.

does knows why happening , how can undimm screen of device before setting flag_keep_screen_on flag?


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -