Monday, November 14, 2011

How to check screen off mode in android ?

 How to check screen off mode in android ?

PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
         boolean isScreenOn = pm.isScreenOn();

Check out this may be help you

Related Posts Plugin for WordPress, Blogger...