IT. Expert System.

Android Reference

ContactsContract.Contacts


android.provider

Class ContactsContract.Contacts

    • Field Detail

      • CONTENT_URI

        public static final Uri CONTENT_URI
        The content:// style URI for this table
      • CONTENT_LOOKUP_URI

        public static final Uri CONTENT_LOOKUP_URI
        A content:// style URI for this table that should be used to create shortcuts or otherwise create long-term links to contacts. This URI should always be followed by a "/" and the contact's ContactsContract.ContactsColumns.LOOKUP_KEY. It can optionally also have a "/" and last known contact ID appended after that. This "complete" format is an important optimization and is highly recommended.

        As long as the contact's row ID remains the same, this URI is equivalent to CONTENT_URI. If the contact's row ID changes as a result of a sync or aggregation, this URI will look up the contact using indirect information (sync IDs or constituent raw contacts).

        Lookup key should be appended unencoded - it is stored in the encoded form, ready for use in a URI.

      • CONTENT_FILTER_URI

        public static final Uri CONTENT_FILTER_URI
        The content:// style URI used for "type-to-filter" functionality on the CONTENT_URI URI. The filter string will be used to match various parts of the contact name. The filter argument should be passed as an additional path segment after this URI.
      • CONTENT_STREQUENT_URI

        public static final Uri CONTENT_STREQUENT_URI
        The content:// style URI for this table joined with useful data from ContactsContract.Data, filtered to include only starred contacts and the most frequently contacted contacts.
      • CONTENT_FREQUENT_URI

        public static final Uri CONTENT_FREQUENT_URI
        The content:// style URI for showing frequently contacted person listing.
      • CONTENT_STREQUENT_FILTER_URI

        public static final Uri CONTENT_STREQUENT_FILTER_URI
        The content:// style URI used for "type-to-filter" functionality on the CONTENT_STREQUENT_URI URI. The filter string will be used to match various parts of the contact name. The filter argument should be passed as an additional path segment after this URI.
      • CONTENT_GROUP_URI

        public static final Uri CONTENT_GROUP_URI
    • Method Detail

      • lookupContact

        public static Uri lookupContact(ContentResolver resolver,
                        Uri lookupUri)
        Computes a content URI (see CONTENT_URI) given a lookup URI.

        Returns null if the contact cannot be found.

      • openContactPhotoInputStream

        public static InputStream openContactPhotoInputStream(ContentResolver cr,
                                              Uri contactUri,
                                              boolean preferHighres)
        Opens an InputStream for the contacts's photo and returns the photo as a byte stream.
        Parameters:
        cr - The content resolver to use for querying
        contactUri - the contact whose photo should be used. This can be used with either a CONTENT_URI or a CONTENT_LOOKUP_URI URI.
        preferHighres - If this is true and the contact has a higher resolution photo available, it is returned. If false, this function always tries to get the thumbnail
        Returns:
        an InputStream of the photo, or null if no photo is present
      • openContactPhotoInputStream

        public static InputStream openContactPhotoInputStream(ContentResolver cr,
                                              Uri contactUri)
        Opens an InputStream for the contacts's thumbnail photo and returns the photo as a byte stream.
        Parameters:
        cr - The content resolver to use for querying
        contactUri - the contact whose photo should be used. This can be used with either a CONTENT_URI or a CONTENT_LOOKUP_URI URI.
        Returns:
        an InputStream of the photo, or null if no photo is present
        See Also:
        #openContactPhotoInputStream(ContentResolver, Uri, boolean), if instead of the thumbnail the high-res picture is preferred


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: 3429 / . Delta: 0.03091 с