Tuesday, November 15, 2011

Android Turn screen on, When receving notification.

 Android Turn screen on, When receving  notification.

WindowManager.LayoutParams winParams =  getWindow().getAttributes();
    winParams.flags |= (WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED| WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
    getWindow().setAttributes(winParams);

No comments:

Post a Comment

Check out this may be help you

Related Posts Plugin for WordPress, Blogger...