How to get app name from intent received in broadcast receiver in android

My application is listening outgoing_call_broadcast

. I need to know in my broadcast receiver, will the call be made from the dialer application or from saved contacts?

+3


source to share


1 answer


why dont u match the intentions for dialer and contacts in the other receiver and whenever the outgoing call broadcast reads the dataset from the receiver whose application is used for the outgoing call. Intent.ACTION_DIAL for dialer and Intent.ACTION_PICK for contacts



+1


source







All Articles