Skip to content Skip to sidebar Skip to footer

Show Popup Window On Lock Screen

I have implemented a caller ID feature where when the screen is locked it should open the lock and show the popup with the name of the person calling. this is the code i've added i

Solution 1:

getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON | WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD | WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON |PixelFormat.TRANSLUCENT);

This seems to be working for me

Post a Comment for "Show Popup Window On Lock Screen"