I want to create a customized popup over the android's incoming call screen where I wish to add information for the user. I want the popup to not disable any clickability from the background so that the user could still answer the call.
I know it is possible since many applications do it, e.g. MeZeZe app:
Some more information:
Would appreciate any help! Thanks
Method 2: (For Android Pie-based Phones) Step 1: Go to App Info of the Phone Dialer app and tap on Notifications. Step 2: Tap on the 'Incoming Calls' option and then on behavior. Step 3: Now tap on 'Behaviour'. Step 4: Ensure that the notification priority is set to urgent or “Make sound and pop up”.
When an incoming call arrives, a small icon appears at the bottom of the screen (Figure C). Tap that icon to reveal options for answering the call, ignoring the call, ignoring the call with a message, or muting the incoming call.
If you want to keep the Call activity still clickable, but not have any controls on your overlay, you can do this by calling
getWindow().addFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL);
In the onCreate() method of the activity that is shown over the call.
The layout parameters useable together with this are:
android:windowBackground="@android:color/transparent"
android:windowIsTranslucent="true"
android:windowAnimationStyle="@android:style/Animation.Translucent"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With