I have registred an intent in AndroidManifest file, to make my app, pops up when the user selected a contact in contacts app, and i succeeded in retreiving the look up key, but i can't found a way to get the contact selected details, i have looked at some others using cursor, but when the i execute the query function my app crashes, this is my code retreiving the look up key
Intent intent = getIntent();
String action = intent.getAction();
Uri contactUri = intent.getData();
if (Intent.ACTION_VIEW.equals(action)) {
// here i don't know what to use to search for the contact by the contactUri
}
So, i have to get Contact Name, and the Contact Number !