[android-developers] Re: Selected a contact phone number

2013-11-18 Thread Piren
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

[android-developers] Re: Selected a contact phone number

2013-11-18 Thread Kostya Vasilyev
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