IT. Expert System.

Android Reference

ContactsContract.Intents.Insert


android.provider

Class ContactsContract.Intents.Insert

  • Enclosing class:
    ContactsContract.Intents


    public static final class ContactsContract.Intents.Insert
    extends Object
    Convenience class that contains string constants used to create contact Intents.
    • Field Detail

      • PHONETIC_NAME

        public static final String PHONETIC_NAME
        The extra field for the contact phonetic name.

        Type: String

        See Also:
        Constant Field Values
      • JOB_TITLE

        public static final String JOB_TITLE
        The extra field for the contact job title.

        Type: String

        See Also:
        Constant Field Values
      • PHONE_ISPRIMARY

        public static final String PHONE_ISPRIMARY
        The extra field for the phone isprimary flag.

        Type: boolean

        See Also:
        Constant Field Values
      • SECONDARY_PHONE

        public static final String SECONDARY_PHONE
        The extra field for an optional second contact phone number.

        Type: String

        See Also:
        Constant Field Values
      • TERTIARY_PHONE

        public static final String TERTIARY_PHONE
        The extra field for an optional third contact phone number.

        Type: String

        See Also:
        Constant Field Values
      • EMAIL_ISPRIMARY

        public static final String EMAIL_ISPRIMARY
        The extra field for the email isprimary flag.

        Type: boolean

        See Also:
        Constant Field Values
      • SECONDARY_EMAIL

        public static final String SECONDARY_EMAIL
        The extra field for an optional second contact email address.

        Type: String

        See Also:
        Constant Field Values
      • TERTIARY_EMAIL

        public static final String TERTIARY_EMAIL
        The extra field for an optional third contact email address.

        Type: String

        See Also:
        Constant Field Values
      • POSTAL_ISPRIMARY

        public static final String POSTAL_ISPRIMARY
        The extra field for the postal isprimary flag.

        Type: boolean

        See Also:
        Constant Field Values
      • IM_ISPRIMARY

        public static final String IM_ISPRIMARY
        The extra field for the IM isprimary flag.

        Type: boolean

        See Also:
        Constant Field Values
      • DATA

        public static final String DATA
        The extra field that allows the client to supply multiple rows of arbitrary data for a single contact created using the Intent.ACTION_INSERT or edited using Intent.ACTION_EDIT. It is an ArrayList of ContentValues, one per data row. Supplying this extra is similar to inserting multiple rows into the ContactsContract.Contacts.Data table, except the user gets a chance to see and edit them before saving. Each ContentValues object must have a value for ContactsContract.DataColumns.MIMETYPE. If supplied values are not visible in the editor UI, they will be dropped. Duplicate data will dropped. Some fields like Email.TYPE may be automatically adjusted to comply with the constraints of the specific account type. For example, an Exchange contact can only have one phone numbers of type Home, so the contact editor may choose a different type for this phone number to avoid dropping the valueable part of the row, which is the phone number.

        Example:

          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);
         
        See Also:
        Constant Field Values
      • ACCOUNT

        public static final String ACCOUNT
        Used to specify the account in which to create the new contact.

        If this value is not provided, the user is presented with a disambiguation dialog to chose an account

        Type: Account

        See Also:
        Constant Field Values
      • DATA_SET

        public static final String DATA_SET
        Used to specify the data set within the account in which to create the new contact.

        This value is optional - if it is not specified, the contact will be created in the base account, with no data set.

        Type: String

        See Also:
        Constant Field Values
    • Constructor Detail

      • ContactsContract.Intents.Insert

        public ContactsContract.Intents.Insert()


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 837 / . Delta: 0.03969 с