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
Post a Comment