forked from yesidlazaro/GmailBackground
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Hi I'm using the code below
Cursor phones = getContentResolver().query(ContactsContract.CommonDataKinds.
Phone.CONTENT_URI, null,null,null, ContactsContract.Contacts.DISPLAY_NAME + " ASC ");
while (phones.moveToNext())
{
String name=phones.getString(phones.getColumnIndex(
ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME));
String phoneNumber = phones.getString(phones.getColumnIndex(
ContactsContract.CommonDataKinds.Phone.NUMBER));
sss=name+"->"+phoneNumber+"\n";
}
phones.close();
.withBody(sss)
I want to send all contacts but only one contact
please help me
Metadata
Metadata
Assignees
Labels
No labels