Wednesday, April 25, 2012

[android-developers] Re: Contact UI Question

You don't have to create your own contact editing UI. You can send an intent to the contacts app, which will bring the app to the foreground, displaying the Add Contacts screen. You can send extras that will populate the screen with data. See the javadoc for ContactsContract.Intents.Insert. If you send the intent with startActivityForResult(), you'll get a callback to onActivityResult(), which has an intent argument. The data field for the intent contains a content URI for the newly-added contact.

On Wednesday, April 25, 2012 7:48:13 AM UTC-7, Mark Phillips wrote:
In my application, I need to collect information about (most likely) new people for the phone's contact database (eg players on a sports team). I see how to add the information using the Contacts API (http://developer.android.com/resources/articles/contacts.html). I was thinking of adding the contact with a new group name, so I can easily find them again and display just those the names in a ListActivity.

What about the ui for creating and editing contacts? Do I have to create my own contact editing ui, or is there a way to drop the user in the "native" edit contact ui to enter the information about the contact, and then bring them back to my app's ui when they are done?

Thanks,

Mark

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate