IT. Expert System.

Android Reference

CallLog.Calls


android.provider

Class CallLog.Calls

    • Field Detail

      • CONTENT_URI

        public static final Uri CONTENT_URI
        The content:// style URL for this table
      • CONTENT_FILTER_URI

        public static final Uri CONTENT_FILTER_URI
        The content:// style URL for filtering this table on phone numbers
      • LIMIT_PARAM_KEY

        public static final String LIMIT_PARAM_KEY
        Query parameter used to limit the number of call logs returned.

        TYPE: integer

        See Also:
        Constant Field Values
      • OFFSET_PARAM_KEY

        public static final String OFFSET_PARAM_KEY
        Query parameter used to specify the starting record to return.

        TYPE: integer

        See Also:
        Constant Field Values
      • ALLOW_VOICEMAILS_PARAM_KEY

        public static final String ALLOW_VOICEMAILS_PARAM_KEY
        An optional URI parameter which instructs the provider to allow the operation to be applied to voicemail records as well.

        TYPE: Boolean

        Using this parameter with a value of true will result in a security error if the calling package does not have appropriate permissions to access voicemails.

        See Also:
        Constant Field Values
      • CONTENT_URI_WITH_VOICEMAIL

        public static final Uri CONTENT_URI_WITH_VOICEMAIL
        Content uri with ALLOW_VOICEMAILS_PARAM_KEY set. This can directly be used to access call log entries that includes voicemail records.
      • DEFAULT_SORT_ORDER

        public static final String DEFAULT_SORT_ORDER
        The default sort order for this table
        See Also:
        Constant Field Values
      • TYPE

        public static final String TYPE
        The type of the call (incoming, outgoing or missed).

        Type: INTEGER (int)

        See Also:
        Constant Field Values
      • INCOMING_TYPE

        public static final int INCOMING_TYPE
        Call log type for incoming calls.
        See Also:
        Constant Field Values
      • OUTGOING_TYPE

        public static final int OUTGOING_TYPE
        Call log type for outgoing calls.
        See Also:
        Constant Field Values
      • MISSED_TYPE

        public static final int MISSED_TYPE
        Call log type for missed calls.
        See Also:
        Constant Field Values
      • VOICEMAIL_TYPE

        public static final int VOICEMAIL_TYPE
        Call log type for voicemails.
        See Also:
        Constant Field Values
      • COUNTRY_ISO

        public static final String COUNTRY_ISO
        The ISO 3166-1 two letters country code of the country where the user received or made the call.

        Type: TEXT

        See Also:
        Constant Field Values
      • DATE

        public static final String DATE
        The date the call occured, in milliseconds since the epoch

        Type: INTEGER (long)

        See Also:
        Constant Field Values
      • NEW

        public static final String NEW
        Whether or not the call has been acknowledged

        Type: INTEGER (boolean)

        See Also:
        Constant Field Values
      • CACHED_NAME

        public static final String CACHED_NAME
        The cached name associated with the phone number, if it exists. This value is not guaranteed to be current, if the contact information associated with this number has changed.

        Type: TEXT

        See Also:
        Constant Field Values
      • CACHED_NUMBER_TYPE

        public static final String CACHED_NUMBER_TYPE
        The cached number type (Home, Work, etc) associated with the phone number, if it exists. This value is not guaranteed to be current, if the contact information associated with this number has changed.

        Type: INTEGER

        See Also:
        Constant Field Values
      • CACHED_NUMBER_LABEL

        public static final String CACHED_NUMBER_LABEL
        The cached number label, for a custom number type, associated with the phone number, if it exists. This value is not guaranteed to be current, if the contact information associated with this number has changed.

        Type: TEXT

        See Also:
        Constant Field Values
      • IS_READ

        public static final String IS_READ
        Whether this item has been read or otherwise consumed by the user.

        Unlike the NEW field, which requires the user to have acknowledged the existence of the entry, this implies the user has interacted with the entry.

        Type: INTEGER (boolean)

        See Also:
        Constant Field Values
      • GEOCODED_LOCATION

        public static final String GEOCODED_LOCATION
        A geocoded location for the number associated with this call.

        The string represents a city, state, or country associated with the number.

        Type: TEXT

        See Also:
        Constant Field Values
      • CACHED_LOOKUP_URI

        public static final String CACHED_LOOKUP_URI
        The cached URI to look up the contact associated with the phone number, if it exists. This value is not guaranteed to be current, if the contact information associated with this number has changed.

        Type: TEXT

        See Also:
        Constant Field Values
      • CACHED_MATCHED_NUMBER

        public static final String CACHED_MATCHED_NUMBER
        The cached phone number of the contact which matches this entry, if it exists. This value is not guaranteed to be current, if the contact information associated with this number has changed.

        Type: TEXT

        See Also:
        Constant Field Values
      • CACHED_NORMALIZED_NUMBER

        public static final String CACHED_NORMALIZED_NUMBER
        The cached normalized version of the phone number, if it exists. This value is not guaranteed to be current, if the contact information associated with this number has changed.

        Type: TEXT

        See Also:
        Constant Field Values
      • CACHED_PHOTO_ID

        public static final String CACHED_PHOTO_ID
        The cached photo id of the picture associated with the phone number, if it exists. This value is not guaranteed to be current, if the contact information associated with this number has changed.

        Type: INTEGER (long)

        See Also:
        Constant Field Values
      • CACHED_FORMATTED_NUMBER

        public static final String CACHED_FORMATTED_NUMBER
        The cached formatted phone number. This value is not guaranteed to be present.

        Type: TEXT

        See Also:
        Constant Field Values
    • Constructor Detail

      • CallLog.Calls

        public CallLog.Calls()
    • Method Detail

      • addCall

        public static Uri addCall(com.android.internal.telephony.CallerInfo ci,
                  Context context,
                  String number,
                  int presentation,
                  int callType,
                  long start,
                  int duration)
        Adds a call to the call log.
        Parameters:
        ci - the CallerInfo object to get the target contact from. Can be null if the contact is unknown.
        context - the context used to get the ContentResolver
        number - the phone number to be added to the calls db
        presentation - the number presenting rules set by the network for "allowed", "payphone", "restricted" or "unknown"
        callType - enumerated values for "incoming", "outgoing", or "missed"
        start - time stamp for the call in milliseconds
        duration - call duration in seconds
      • getLastOutgoingCall

        public static String getLastOutgoingCall(Context context)
        Query the call log database for the last dialed number.
        Parameters:
        context - Used to get the content resolver.
        Returns:
        The last phone number dialed (outgoing) or an empty string if none exist yet.


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: 380 / . Delta: 0.03374 с