Skip to content Skip to sidebar Skip to footer

How To Show The Incoming Call Screen When The Screen Is Locked?

I'm developing my custom calling app, like skype and I need to show 'incoming call' screen to user, when I receive fcm message. I use full screen intent notification for this purpo

Solution 1:

Add following code in your CallActivity:

getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED| WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON|WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);

Post a Comment for "How To Show The Incoming Call Screen When The Screen Is Locked?"