1

If I use the Android Phone app to call, the app shows a photo from the contact that I am calling.

But, if I use an intent to call the Phone app (below code), there is no photo.

Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:1234567890"));
startActivity(callIntent);

How do I show the contact's photo when calling?

Thanks!

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
mmmmm5
  • 151
  • 1
  • 1
  • 14

1 Answers1

0

http://developer.android.com/reference/android/content/Intent.html#ACTION_DIAL

I'm assuming you need to pass the Uri of a phone number, and not an explicit phone number.

ACTION_DIAL content://contacts/people/1 -- Display the phone dialer with the person filled in.

siamii
  • 23,374
  • 28
  • 93
  • 143
  • when i issue an intent of ACTION.CALL and "callIntent.setData(Uri.parse("tel:...));" with a phone number that is already in the contact database, the photo in the contact database is automatically displayed – mmmmm5 Aug 29 '11 at 13:51