A couple of years ago i tried writing something similar... found out that
while it is working fine on most devices, on some devices it failed
miserably, especially if the user filtered the contacts (used the search
bar)... that caused the returned values to be blank on some devices.
After a
I use this code to make the system contact picker show only those contacts
which have email addresses:
Intent intent = new Intent(Intent.ACTION_PICK,
ContactsContract.Contacts.CONTENT_URI);
intent.setType(Email.CONTENT_TYPE);
Just checked that this works too (only contacts with phone numbers
2 matches
Mail list logo