I have a ListView where I want to show the QuickContact (like in the default Contacts android app when you click on the photo of a contact).

It works fine on my Nexus One 2.2 or the emulator with avd 2.2, but doesn't work on my Samsung Galaxy S 2.1update1 or emulator 2.1.

On 2.1, I'm getting the error:

android.content.ActivityNotFoundException: No Activity found to handle Intent { act= com.android.contacts.action.QUICK_CONTACT dat=content://contacts/people/2177

This is the call in the code:

public final void onItemClick(final AdapterView<?> parent, final View view,
        final int position, final long id) {

ContactSummary summary = (ContactSummary) parent.getItemAtPosition(position);

    // Quick Contact Badge
    ContentValues values = new ContentValues();
    values.put(Contacts.People.NAME, summary.formattedName);
Uri uri = getContentResolver().insert(Contacts.People.CONTENT_URI, values); ContactsContract.QuickContact.showQuickContact(this.getApplicationContext(), view, uri, ContactsContract.QuickContact.MODE_MEDIUM, null);

}

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to