2012年7月10日火曜日

Screen on

I try screen on. I would like to keep screen for development.

If I keep screen on
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);

source code is here.




If don't keep screen on
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
source code is here.
Please suggest your android issue by twitter or mail, I would try to clear up your issue.