如何在通话意图中插入照片?
如果我使用 Android 手机应用程序进行呼叫,该应用程序会显示我正在呼叫的联系人的照片。
但是,如果我使用意图调用电话应用程序(下面的代码),则没有照片。
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:1234567890"));
startActivity(callIntent);
打电话时如何显示联系人的照片?
谢谢!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://developer.android.com/reference/android/content/Intent .html#ACTION_DIAL
我假设您需要传递电话号码的 Uri,而不是明确的电话号码。
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.