Hiren Dabhi
Hiren Dabhi

Reputation: 3713

Custom Incoming Call GUI in Android

I was trying to develop an application that show custom GUI on incoming call if that number exist in my database. It works ok. But some time it show up phone default Incoming GUI on my custom GUI.. It might be take some time while checking in database meanwhile it shows phone default GUI. Is it possible to wait/hide/never show default GUI of incoming call ?.

One more problem is once my activity is in foreground and want start the my activity on incoming call and shot popup contain accept/reject GUI. because activity is in foreground it is not created second time it doesn't shown popup(accept/reject) GUI.

Upvotes: 1

Views: 3171

Answers (1)

Hiren Dabhi
Hiren Dabhi

Reputation: 3713

Add intent-filter tag in manifest of your custom UI(activity)

<intent-filter>
            <action android:name="android.intent.action.ANSWER" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>

in ur broadcast receiver check incoming number and if exist open your activity. see the link.

Upvotes: 1

Related Questions