Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/214.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 通过intent转到contacts中的特定联系人_Android_Android Intent_Uri_Contacts - Fatal编程技术网

Android 通过intent转到contacts中的特定联系人

Android 通过intent转到contacts中的特定联系人,android,android-intent,uri,contacts,Android,Android Intent,Uri,Contacts,我的应用程序中有联系人uri,我想通过intent在android联系人应用程序中打开某个联系人 Intent intent= new Intent(Intent.ACTION_VIEW, ContactsContract.Contacts.CONTENT_URI); context.startActivity(intent); 这段代码可以打开联系人,但我不知道如何找到联系人。它是如何工作的?你需要用联系人查找键指定联系人你需要用联系人查找键指定联系人谢谢,

我的应用程序中有联系人uri,我想通过intent在android联系人应用程序中打开某个联系人

Intent intent= new Intent(Intent.ACTION_VIEW,  ContactsContract.Contacts.CONTENT_URI);
                context.startActivity(intent);

这段代码可以打开联系人,但我不知道如何找到联系人。它是如何工作的?

你需要用联系人查找键指定联系人

你需要用联系人查找键指定联系人

谢谢,找到了另一个使用此关键字的线程对我有用,我会尽快测试它谢谢你,找到了另一个使用此关键字的线程对我有用,我会很快测试它