如何插入呼叫意图照片么? [英] How to insert photo in call intent?
本文介绍了如何插入呼叫意图照片么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我用的是Android手机的应用程序调用,应用程序显示从我打电话联系人的照片。
If I use the Android Phone app to call, the app shows a photo from the contact that I am calling.
但是,如果我用一个意图拨打的电话应用(低于code),也没有照片。
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?
谢谢!
推荐答案
的http://developer.android.com/reference/android/content/Intent.html#ACTION_DIAL
我假设你需要通过一个电话号码的URI,并没有一个明确的电话号码。
I'm assuming you need to pass the Uri of a phone number, and not an explicit phone number.
ACTION_DIAL内容://联系人/人/ 1 - 显示手机拨号器
与填充在人
ACTION_DIAL content://contacts/people/1 -- Display the phone dialer with the person filled in.
这篇关于如何插入呼叫意图照片么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文