New call exit

In my application, I am using a new outgoing call receiver. It is working fine. I get whenever a new outgoing call is made.

But now there are two dialer apps on my device. First, the default dialer is used, and the second is my own dialer (using Call_Privilage).

My question is: when I received a broadcast for a new set in my receiver while I can find out from which a dialed telephone call is being dialed. From the default dialing or my own dialer?

+5
source share
1 answer

I have not implemented this and have not tested, but I believe that this will work for you.

, , putExtra callIntent

Ex: callIntent.putExtra("fromMyDialer",1);

, , , .

@Override
public void onReceive(final Context context, final Intent intent) {
    if(intent.getIntExtra("fromMyDialer",0)==1)
      // from my own dialer activity
    else
        // from default dialor of phone

}
+7

All Articles