this Intent opens the Contacts, containing entries with address information only:
Intent getContactIntent = new Intent(Intent.ACTION_PICK, ContactsContract.CommonDataKinds.StructuredPostal.CONTENT_URI);
Now I was trying to use this pattern to filter for contacts containing an eMail:
Intent getContactIntent = new Intent(Intent.ACTION_PICK, ContactsContract.CommonDataKinds.Email.CONTENT_URI);
But this excepts (no action_pick for intent or so)
How can I achieve that?
Currently you can not with the default Contacts app: the default Contacts app registers this Intent filter (see line 165 in https://android.googlesource.com/platform/packages/apps/Contacts/+/master/AndroidManifest.xml#165):
So it is able to respond to the postal address
ACTION_PICKintents, but not to email addressACTION_PICKintents.If you want to do the email address pick you will need to create your own Activity that gets a Cursor from the Contacts provider that only displays users with email addresses and shows that in a ListView for the user to pick.