U
Unicate
Erfahrenes Mitglied
- 57
Hi alle zusammen!
In meiner App muss man einen Standardkontakt einstellen.
Normalerweise ist es ja nun aber so, das niemand sich selbst als Kontakt erstellt hat.
Nun möchte ich das beim Start (erster Start der App nach der Applikation) entweder ein Kontakt ausgewählt wird oder ein neuer erstellt wird.
Gibt es da einen Intent für sowas? (CREATE_OR_PICK) oder sowas?
Wie funktioniert eigentlich SHOW_OR_CREATE_CONTACT?
Wenn ich das mit
starte (SDK 3) dann kommt wirft er:
In meiner App muss man einen Standardkontakt einstellen.
Normalerweise ist es ja nun aber so, das niemand sich selbst als Kontakt erstellt hat.
Nun möchte ich das beim Start (erster Start der App nach der Applikation) entweder ein Kontakt ausgewählt wird oder ein neuer erstellt wird.
Gibt es da einen Intent für sowas? (CREATE_OR_PICK) oder sowas?
Wie funktioniert eigentlich SHOW_OR_CREATE_CONTACT?
Wenn ich das mit
Code:
Intent intent = new Intent(Contacts.Intents.SHOW_OR_CREATE_CONTACT);
startActivity(intent);
Code:
10-01 10:49:18.320: ERROR/AndroidRuntime(5595): android.content.ActivityNotFoundException: No Activity found to handle Intent { action=com.android.contacts.action.SHOW_OR_CREATE_CONTACT type=vnd.android.cursor.item/person }