简体   繁体   中英

Android: How to display Customer Name with Intent.ACTION_CALL

How do I display customer name while dialing call using Intent.ACTION_CALL? currently it only showing the phone number while the call is in progress.

Here is my current code:

Intent intent = new Intent(Intent.ACTION_CALL 
Uri.parse("tel:" + txtViewContactPhoneNumber.getText() ));    
startActivityForResult(intent, contactID);

When you invoke startActivityForResult, you are effectively handing over control to whoever gets the Intent.

You can't control how the receiving application acts on the Intent.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM