SyntaxFix
Write A Post
Hire A Developer
Questions
Use Activity.getWindow() to get the window of your activity; use Window.addFlags() to add whichever of the following flags in WindowManager.LayoutParams that you desire:
Activity.getWindow()
Window.addFlags()
WindowManager.LayoutParams
FLAG_DISMISS_KEYGUARD
FLAG_SHOW_WHEN_LOCKED
FLAG_TURN_SCREEN_ON