Skip to content

problem send all contact #22

@sinaf2000

Description

@sinaf2000

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions