• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.
BabyBlues
Reaction score
9,766

Profile posts Latest activity Postings About

  • Hi,
    the code below opens the native Edit/Add contact screen

    Intent newIntent = new Intent(Intent.ACTION_INSERT,
    ContactsContract.Contacts.CONTENT_URI);

    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");
    i dont understand how will i fill the
    first name, last name , 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
    first name, last name, city, state and zip in ContactsContract.Intents.Insert.
    Also i found that
    ContactsContract.CommonDataKinds.StructuredPostal has the first name, last name, city, state
    and zip attributes
    prepopulate the Edit/Add contact screen with values of first name, last name, city, state
    and zip.

    Please Help me with this,
    star
    M
    Why did the orange stop a rollin down the hill???

    Answer:

    Because it ran out of juice!!

    Dum dum dum dish!!

    xD
    Womens Clothing Online - Womens Fashion Clothing & Shoes

    Don't say I never gave you anything ;)
    M
    Your shoelace is untied! (HD) - YouTube

    One word... :)

    Legendary!!
    M
    Hey!!

    Your shoelaces are untied! :)

    (Please look down!! Please look down!!!)

    xD

    (Loser!)
    Thanks for adding me, you're funny. If you ever get to the Atlanta area hit me up for info on restaurants and such.
    call me crazy, but i would have bet all my money on you being squarely in the "nekkid camp" for your devices... ;)
    M
    <-------- This Avatar = AWESOME-NESS

    :)
    Hi there! Just thought I drop by to see your profile and I figured I'd leave a message :)
  • Loading…
  • Loading…
  • Loading…
Back
Top Bottom