public static class

CallLog.Calls

extends Object
implements BaseColumns
java.lang.Object
   ↳ android.provider.CallLog.Calls

Class Overview

Contains the recent calls.

Summary

Constants
String CACHED_NAME The cached name associated with the phone number, if it exists.
String CACHED_NUMBER_LABEL The cached number label, for a custom number type, associated with the phone number, if it exists.
String CACHED_NUMBER_TYPE The cached number type (Home, Work, etc) associated with the phone number, if it exists.
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.
String CONTENT_TYPE The MIME type of CONTENT_URI and CONTENT_FILTER_URI providing a directory of 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)

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

Type: INTEGER (long)

int INCOMING_TYPE
int MISSED_TYPE
String NEW Whether or not the call has been acknowledged

Type: INTEGER (boolean)

String NUMBER The phone number as the user entered it.
int OUTGOING_TYPE
String TYPE The type of the call (incoming, outgoing or missed).
[Expand]
Inherited Constants
From interface android.provider.BaseColumns
Public Constructors
CallLog.Calls()
Public Methods
static String getLastOutgoingCall(Context context)
Query the call log database for the last dialed number.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String CACHED_NAME

Since: API Level 1

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

Since: API Level 1

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

Since: API Level 1

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

Since: API Level 1

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

public static final String CONTENT_ITEM_TYPE

Since: API Level 1

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

Since: API Level 1

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

Since: API Level 1

The content:// style URL for this table

public static final String DATE

Since: API Level 1

The date the call occured, in milliseconds since the epoch

Type: INTEGER (long)

Constant Value: "date"

public static final String DEFAULT_SORT_ORDER

Since: API Level 1

The default sort order for this table

Constant Value: "date DESC"

public static final String DURATION

Since: API Level 1

The duration of the call in seconds

Type: INTEGER (long)

Constant Value: "duration"

public static final int INCOMING_TYPE

Since: API Level 1

Constant Value: 1 (0x00000001)

public static final int MISSED_TYPE

Since: API Level 1

Constant Value: 3 (0x00000003)

public static final String NEW

Since: API Level 1

Whether or not the call has been acknowledged

Type: INTEGER (boolean)

Constant Value: "new"

public static final String NUMBER

Since: API Level 1

The phone number as the user entered it.

Type: TEXT

Constant Value: "number"

public static final int OUTGOING_TYPE

Since: API Level 1

Constant Value: 2 (0x00000002)

public static final String TYPE

Since: API Level 1

The type of the call (incoming, outgoing or missed).

Type: INTEGER (int)

Constant Value: "type"

Public Constructors

public CallLog.Calls ()

Since: API Level 1

Public Methods

public static String getLastOutgoingCall (Context context)

Since: API Level 8

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.