Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7591619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:41:47+00:00 2026-05-30T20:41:47+00:00

ArrayList<ContentValues> data = new ArrayList<ContentValues>(); ContentValues row1 = new ContentValues(); row1.put(Data.MIMETYPE, Organization.CONTENT_ITEM_TYPE); row1.put(Organization.COMPANY, Android);

  • 0
ArrayList<ContentValues> data = new ArrayList<ContentValues>();
ContentValues row1 = new ContentValues();
row1.put(Data.MIMETYPE, Organization.CONTENT_ITEM_TYPE);
row1.put(Organization.COMPANY, "Android");
data.add(row1);
ContentValues row2 = new ContentValues();
row2.put(Data.MIMETYPE, Email.CONTENT_ITEM_TYPE);
row2.put(Email.TYPE, Email.TYPE_CUSTOM);
row2.put(Email.LABEL, "Green Bot");
row2.put(Email.ADDRESS, "android@android.com");
data.add(row2);
Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI);
intent.putParcelableArrayListExtra(Insert.DATA, data);
startActivity(intent);

I did not find it in
android.provider.ContactsContract.Intents.Insert.Data (which is using in second last instruction)
there is no Data Variable in Insert Class , I am using API-8 v2.2
Please help is their any other way to do this ?
I want to fill the data in add contact like this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T20:41:48+00:00Added an answer on May 30, 2026 at 8:41 pm

    If you look at the javadoc for ContactsContract.Intents.Insert, you’ll see a bunch of constants like COMPANY, JOBTITLE, etc. You should use those to populate the extras of your Intent. Only use the DATA key if you don’t see a constant. The documentation is not clear on this, but in fact the People app only accepts some column values in DATA.

    For example, instead of doing

    row.put(Data.MIMETYPE, Organization.CONTENT_ITEM_TYPE);
    row.put(Organization.COMPANY, “Android”);

    do

    intent.putExtra(Intents.Insert.COMPANY, “Android”);

    That should work.

    I’m not sure what you mean by “there is no Data Variable in Insert Class”. There shouldn’t be. Insert.DATA is a constant that names a key for putExtra.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I type ArrayList memberNames = new ArrayList() { Jim, John, George }; and Visual
ArrayList<String> emplist = new ArrayList<String>(); //Inside the array I add list of employee that
ArrayList<Object> list = new ArrayList<Object>(); list.add(1); list.add(Java); list.add(3.14); System.out.println(list.toString()); I tried: ArrayList<String> list2 =
ArrayList<String> myArr = new ArrayList<String>(); then add some stuff to it myArr.add(Hello); myArr.add(Testing); myArr.add(Testing
I have this arraylist: ArrayList ftd = new ArrayList(); ftd.Add(new string[]{ foo1.txt, 01.01.2011 });
ArrayList<yellowPage> ob1 = new ArrayList<yellowPage>(); yellowPage thing = new yellowPage(100,100); thing.calc(i,y,s3); ob1.add(thing); I stored
ArrayList<Customer> customerList = new ArrayList<Customer>(); // add object to arraylist customerList.add(customer); // get objects
ArrayList<Object> list = new ArrayList<Object>(); list.add(12); list.add(Hello); list.add(true); list.add('c'); Iterator iterator = list.iterator(); while(iterator.hasNext())
List l = new ArrayList<Number>(); List<String> ls = l; // unchecked warning l.add(0, new
ArrayList<NameValuePair> postParameters = new ArrayList<NameValuePair>(); postParameters.add(new BasicNameValuePair(a, yes)); postParameters.add(new BasicNameValuePair(b, Value 2)); postParameters.add(new BasicNameValuePair(c,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.