How to start 'View Contact' Activity on android?
- by Phuc Phan Nguyen Truong
Hi all,
I want to create a tab which contains a tab for viewing contact detail. Here is what i did:
intent = new Intent(Intent.ACTION_VIEW, Uri.withAppendedPath(ContactsContract.Contacts.CONTENT_URI, ""+contactId));
nativeInfo = tabHost.newTabSpec("native info").setIndicator("N Info").setContent(intent);
It throw security exception.
I appreciate your help.
Thanks.