Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem send all contact #22

Open
sinaf2000 opened this issue Mar 9, 2020 · 1 comment
Open

problem send all contact #22

sinaf2000 opened this issue Mar 9, 2020 · 1 comment

Comments

@sinaf2000
Copy link

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

@luongvo
Copy link
Owner

luongvo commented Apr 6, 2020

@sinaf2000 your question is not clear, I can't get it 🤔

I want to send all contacts but only one contact

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants