如果我使用Android手机应用程序拨打电话,该应用会显示我正在呼叫的联系人的照片。
但是,如果我使用意图来调用手机应用程序(代码下方),则没有照片。
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:1234567890"));
startActivity(callIntent);
如何在致电时显示联系人的照片?
谢谢!
答案 0 :(得分:0)
http://developer.android.com/reference/android/content/Intent.html#ACTION_DIAL
我假设您需要传递电话号码的Uri,而不是明确的电话号码。
ACTION_DIAL内容:// contacts / people / 1 - 显示电话拨号器 与填写的人。