Hi, Android developers plz help me with this plz. Thanks a lot, Sagar
On Mar 5, 6:35 pm, sagare <[email protected]> wrote: > Hi All, > > I know the code below opens the native Edit/Add contact screen > > Intent newIntent = new Intent(Intent.ACTION_INSERT, > ContactsContract.Contacts.CONTENT_URI); > startActivityForResult(newIntent, 1); > > now i want this screen to be populated with some data in fields like > name, phone number, address etc. I found that if i do something like > newIntent.putExtra(ContactsContract.Intents.Insert.NAME, "Some > Name"); > will show this screen with name "Some Name" being shown in the name > field this is fine for me now i dont understand how will i fill the > city, state and zip fields similarly. > I found the ContactsContract.Intents.Insert has a > POSTAL attribute for address but there are no specific attributes for > city, state and zip in ContactsContract.Intents.Insert. > Also i found that > ContactsContract.CommonDataKinds.StructuredPostal has the city, state > and zip attributes but still i dont know how can i use this to > prepopulate the Edit/Add contact screen with values of city, state > and zip. > > Please Help me with this, > Sagar -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

