When I get incoming call on my mobile that time I want to ask user to select action like "In which app they wants to pickup that call".
Normally as per my research when I use android:permission="android.permission.CALL_PHONE"
action for my receiver then It will automatically open "Complete action using" but unfortunately not getting that popup.
To open that popup, I have done below code
Intent it = new Intent(Intent.ACTION_CALL);
it.setData(Uri.parse("tel:" +number));
it.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
if (ActivityCompat.checkSelfPermission(ctx,
Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {
return;
}
ctx.startActivity(it);
And using that code "Complete action using" popup is open but not getting my app in that selection
I refer below link to make my scenario working how to use android.intent.action.CALL_PRIVILEGED and android.intent.action.NEW_OUTGOING_CALL?
So can any one please help me to make my scenario working?