1
In one app for Android, I intend to open the contacts agenda from another Activity
via Intent
, but I would like to see only contacts that bring a specific value in the "Organization" field. There is a way to specify this in the Intent
that opens the contacts' agenda? It follows the current code, in which the Intent
is started at the click of the button getContactDetails
:
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);
}
});
Claudsan, I understand that the query will return me the filtered results, but this will show me only the selected contacts in the default contacts application itself Android? I imagine it takes a
Intent
for that, no?– Claudio