Build 1.0_r1(from source)

android.provider
Class CallLog.Calls

java.lang.Object
  extended by android.provider.CallLog.Calls
All Implemented Interfaces:
BaseColumns
Enclosing class:
CallLog

public static class CallLog.Calls
extends Object
implements BaseColumns

Contains the recent calls.


Field Summary
static String CACHED_NAME
          The cached name associated with the phone number, if it exists.
static String CACHED_NUMBER_LABEL
          The cached number label, for a custom number type, associated with the phone number, if it exists.
static String CACHED_NUMBER_TYPE
          The cached number type (Home, Work, etc) associated with the phone number, if it exists.
static Uri CONTENT_FILTER_URI
          The content:// style URL for filtering this table on phone numbers
static String CONTENT_ITEM_TYPE
          The MIME type of a CONTENT_URI sub-directory of a single call.
static String CONTENT_TYPE
          The MIME type of CONTENT_URI and CONTENT_FILTER_URI providing a directory of calls.
static Uri CONTENT_URI
          The content:// style URL for this table
static String DATE
          The date the call occured, in milliseconds since the epoch
static String DEFAULT_SORT_ORDER
          The default sort order for this table
static String DURATION
          The duration of the call in seconds
static int INCOMING_TYPE
           
static int MISSED_TYPE
           
static String NEW
          Whether or not the call has been acknowledged
static String NUMBER
          The phone number as the user entered it.
static int OUTGOING_TYPE
           
static String TYPE
          The type of the the phone number.
 
Fields inherited from interface android.provider.BaseColumns
_COUNT, _ID
 
Constructor Summary
CallLog.Calls()
           
 
Method Summary
static Uri addCall(com.android.internal.telephony.CallerInfo ci, Context context, String number, boolean isPrivateNumber, int callType, long start, int duration)
          Adds a call to the call log.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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


DEFAULT_SORT_ORDER

public static final String DEFAULT_SORT_ORDER
The default sort order for this table

See Also:
Constant Field Values

CONTENT_TYPE

public static final String CONTENT_TYPE
The MIME type of CONTENT_URI and CONTENT_FILTER_URI providing a directory of calls.

See Also:
Constant Field Values

CONTENT_ITEM_TYPE

public static final String CONTENT_ITEM_TYPE
The MIME type of a CONTENT_URI sub-directory of a single call.

See Also:
Constant Field Values

TYPE

public static final String TYPE
The type of the the phone number.

Type: INTEGER (int)

See Also:
Constant Field Values

INCOMING_TYPE

public static final int INCOMING_TYPE
See Also:
Constant Field Values

OUTGOING_TYPE

public static final int OUTGOING_TYPE
See Also:
Constant Field Values

MISSED_TYPE

public static final int MISSED_TYPE
See Also:
Constant Field Values

NUMBER

public static final String NUMBER
The phone number as the user entered it.

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

DURATION

public static final String DURATION
The duration of the call in seconds

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
Constructor Detail

CallLog.Calls

public CallLog.Calls()
Method Detail

addCall

public static Uri addCall(com.android.internal.telephony.CallerInfo ci,
                          Context context,
                          String number,
                          boolean isPrivateNumber,
                          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
isPrivateNumber - true if the call was marked as private by the network
callType - enumerated values for "incoming", "outgoing", or "missed"
start - time stamp for the call in milliseconds
duration - call duration in seconds

Build 1.0_r1(from source)

Please submit a feedback, bug or feature