Friday, February 10, 2012

How to make the android Screen Light ON continously through code?

write down the following line of code in onCreate() of activity.......

getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);

No comments:

Post a Comment