Android
android.provider
public static class

android.provider.CallLog.Calls

java.lang.Object
android.provider.CallLog.Calls BaseColumns

Contains the recent calls.

Summary

Constants

      Value  
String  CACHED_NAME  The cached name associated with the phone number, if it exists.  "name" 
String  CACHED_NUMBER_LABEL  The cached number label, for a custom number type, associated with the phone number, if it exists.  "numberlabel" 
String  CACHED_NUMBER_TYPE  The cached number type (Home, Work, etc) associated with the phone number, if it exists.  "numbertype" 
Uri  CONTENT_FILTER_URI  The content:// style URL for filtering this table on phone numbers      
String  CONTENT_ITEM_TYPE  The MIME type of a CONTENT_URI sub-directory of a single call.  "vnd.android.cursor.item/calls" 
String  CONTENT_TYPE  The MIME type of CONTENT_URI and CONTENT_FILTER_URI providing a directory of calls.  "vnd.android.cursor.dir/calls" 
Uri  CONTENT_URI  The content:// style URL for this table      
String  DATE  The date the call occured, in milliseconds since the epoch

Type: INTEGER (long)

 
"date" 
String  DEFAULT_SORT_ORDER  The default sort order for this table   "date DESC" 
String  DURATION  The duration of the call in seconds

Type: INTEGER (long)

 
"duration" 
int  INCOMING_TYPE    0x00000001 
int  MISSED_TYPE    0x00000003 
String  NEW  Whether or not the call has been acknowledged

Type: INTEGER (boolean)

 
"new" 
String  NUMBER  The phone number as the user entered it.  "number" 
int  OUTGOING_TYPE    0x00000002 
String  TYPE  The type of the the phone number.  "type" 
Constants inherited from interface android.provider.BaseColumns

Public Constructors

            CallLog.Calls()

Public Methods

      static    Uri  addCall(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

Details

Constants

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

Constant Value: "name"

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

Constant Value: "numberlabel"

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

Constant Value: "numbertype"

public static final Uri CONTENT_FILTER_URI

The content:// style URL for filtering this table on phone numbers

public static final String CONTENT_ITEM_TYPE

The MIME type of a CONTENT_URI sub-directory of a single call.
Constant Value: "vnd.android.cursor.item/calls"

public static final String CONTENT_TYPE

The MIME type of CONTENT_URI and CONTENT_FILTER_URI providing a directory of calls.
Constant Value: "vnd.android.cursor.dir/calls"

public static final Uri CONTENT_URI

The content:// style URL for this table

public static final String DATE

The date the call occured, in milliseconds since the epoch

Type: INTEGER (long)

Constant Value: "date"

public static final String DEFAULT_SORT_ORDER

The default sort order for this table
Constant Value: "date DESC"

public static final String DURATION

The duration of the call in seconds

Type: INTEGER (long)

Constant Value: "duration"

public static final int INCOMING_TYPE

Constant Value: 1 (0x00000001)

public static final int MISSED_TYPE

Constant Value: 3 (0x00000003)

public static final String NEW

Whether or not the call has been acknowledged

Type: INTEGER (boolean)

Constant Value: "new"

public static final String NUMBER

The phone number as the user entered it.

Type: TEXT

Constant Value: "number"

public static final int OUTGOING_TYPE

Constant Value: 2 (0x00000002)

public static final String TYPE

The type of the the phone number.

Type: INTEGER (int)

Constant Value: "type"

Public Constructors

public CallLog.Calls()

Public Methods

public static Uri addCall(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
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56