I would like to show a contact record.
This code show a list with one record. No the specific record.
Cursor cursor =
getContentResolver().query(ContactsContract.Contacts.CONTENT_URI.buildUpon().build(),
new String[] { Contacts.LOOKUP_KEY },null,
null, null);
cursor.moveToNext();
String lookup=cursor.getString(0);
Uri uri=Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI,lookup);
Intent inte=new Intent(Intent.ACTION_VIEW,uri);
startActivity(inte);
How I can do this ?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
To unsubscribe, reply using "remove me" as the subject.