I am using the ContactsContract API in Android to get a list of contacts. It is working fine.
Now I want that when I click on a name in this list, an intent is created that will open the contact in the Android contact manager.
The following code crashes the app: Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(Uri.parse(ContactsContract.Contacts.CONTENT_URI + "/" + ContactsContract.Contacts._ID));
kindly help me here with this intention
source share