I am using ContactsContract API in Android to get the list of contacts. The is working fine.
Now I want that when I click on a name in that list an intent is generated 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 out here with this intent
This should show the contacts ‘card’ in the android contact manager