In an Android application, I want to open the contacts directory from another Activity
via Intent
, but I would like to see only the contacts that have a specific value in the "Organization" field. Is there a way to specify this in Intent
that opens the contacts calendar? The current code, where Intent
is started when you click the getContactDetails
button:
getContactDetails.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
//Inicia atividade de lista de contatos, para obter os dados do contato
Intent intent = new Intent(Intent.ACTION_PICK,
ContactsContract.Contacts.CONTENT_URI);
startActivityForResult(intent, PICK_CONTACT);
}
});