Once ACTION_NEW_OUTGOING_CALL
has been broadcasted, I need to capture the following event of the other party answer. Could you advice on how to achieve that please? I know it is possible as the android dialer app changes the green android icon to the person's photo excatly when they pick up. Thanks!
UPDATED: I've had a look at the source of the app on Android handling the outgoing calls. I noticed the following method in ContactsUtils
:
/**
* Kick off an intent to initiate a call.
*/
public static void initiateCall(Context context, CharSequence phoneNumber) {
Intent intent = new Intent(Intent.ACTION_CALL_PRIVILEGED,
Uri.fromParts("tel", phoneNumber.toString(), null));
context.startActivity(intent);
}
I guess my answer is in the activity listening for Intent.ACTION_CALL_PRIVILEGED
. So to reprhase my question: Does anyone know which activity handles Intent.ACTION_CALL_PRIVILEGED
? Thank you.