java.lang.Object | |
↳ | android.provider.CallLog.Calls |
Contains the recent calls.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | CACHED_FORMATTED_NUMBER | The cached phone number, formatted with formatting rules based on the country the user was in when the call was made or received. | |||||||||
String | CACHED_LOOKUP_URI | The cached URI to look up the contact associated with the phone number, if it exists. | |||||||||
String | CACHED_MATCHED_NUMBER | The cached phone number of the contact which matches this entry, if it exists. | |||||||||
String | CACHED_NAME | The cached name associated with the phone number, if it exists. | |||||||||
String | CACHED_NORMALIZED_NUMBER | The cached normalized(E164) version of 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. | |||||||||
String | CACHED_PHOTO_ID | The cached photo id of the picture associated with the phone number, if it exists. | |||||||||
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.
|
|||||||||
String | COUNTRY_ISO | The ISO 3166-1 two letters country code of the country where the user received or made the call. | |||||||||
String | DATA_USAGE | The data usage of the call in bytes. | |||||||||
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) |
|||||||||
String | EXTRA_CALL_TYPE_FILTER |
An optional extra used with Calls.CONTENT_TYPE and
ACTION_VIEW to specify that the presented list of calls should be
filtered for a particular call type.
|
|||||||||
String | FEATURES | Bit-mask describing features of the call (e.g. | |||||||||
int | FEATURES_VIDEO | Call had video. | |||||||||
String | GEOCODED_LOCATION | A geocoded location for the number associated with this call. | |||||||||
int | INCOMING_TYPE | Call log type for incoming calls. | |||||||||
String | IS_READ | Whether this item has been read or otherwise consumed by the user. | |||||||||
String | LIMIT_PARAM_KEY | Query parameter used to limit the number of call logs returned. | |||||||||
int | MISSED_TYPE | Call log type for missed calls. | |||||||||
String | NEW |
Whether or not the call has been acknowledged
Type: INTEGER (boolean) |
|||||||||
String | NUMBER | The phone number as the user entered it. | |||||||||
String | NUMBER_PRESENTATION | The number presenting rules set by the network. | |||||||||
String | OFFSET_PARAM_KEY | Query parameter used to specify the starting record to return. | |||||||||
int | OUTGOING_TYPE | Call log type for outgoing calls. | |||||||||
String | PHONE_ACCOUNT_COMPONENT_NAME | The component name of the account in string form. | |||||||||
String | PHONE_ACCOUNT_ID | The identifier of a account that is unique to a specified component. | |||||||||
int | PRESENTATION_ALLOWED | Number is allowed to display for caller id. | |||||||||
int | PRESENTATION_PAYPHONE | Number is a pay phone. | |||||||||
int | PRESENTATION_RESTRICTED | Number is blocked by user. | |||||||||
int | PRESENTATION_UNKNOWN | Number is not specified or unknown by network. | |||||||||
String | TRANSCRIPTION | Transcription of the call or voicemail entry. | |||||||||
String | TYPE | The type of the call (incoming, outgoing or missed). | |||||||||
int | VOICEMAIL_TYPE | Call log type for voicemails. | |||||||||
String | VOICEMAIL_URI | URI of the voicemail entry. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.provider.BaseColumns
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CONTENT_FILTER_URI | The content:// style URL for filtering this table on phone numbers | ||||||||||
CONTENT_URI | The content:// style URL for this table | ||||||||||
CONTENT_URI_WITH_VOICEMAIL | Content uri used to access call log entries, including voicemail records. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Query the call log database for the last dialed number.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The cached phone number, formatted with formatting rules based on the country the user was in when the call was made or received. This value is not guaranteed to be present, and may not be current if the contact information associated with this number has changed.
Type: TEXT
The cached URI to look up the contact associated with the phone number, if it exists. This value may not be current if the contact information associated with this number has changed.
Type: TEXT
The cached phone number of the contact which matches this entry, if it exists. This value may not be current if the contact information associated with this number has changed.
Type: TEXT
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
The cached normalized(E164) version of the phone number, if it exists. This value may not be current if the contact information associated with this number has changed.
Type: TEXT
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
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
The cached photo id of the picture associated with the phone number, if it exists. This value may not be current if the contact information associated with this number has changed.
Type: INTEGER (long)
The MIME type of a CONTENT_URI
sub-directory of a single
call.
The MIME type of CONTENT_URI
and CONTENT_FILTER_URI
providing a directory of calls.
The ISO 3166-1 two letters country code of the country where the user received or made the call.
Type: TEXT
The data usage of the call in bytes.
Type: INTEGER (long)
The date the call occured, in milliseconds since the epoch
Type: INTEGER (long)
The default sort order for this table
The duration of the call in seconds
Type: INTEGER (long)
An optional extra used with Calls.CONTENT_TYPE
and
ACTION_VIEW
to specify that the presented list of calls should be
filtered for a particular call type.
Applications implementing a call log UI should check for this extra, and display a
filtered list of calls based on the specified call type. If not applicable within the
application's UI, it should be silently ignored.
The following example brings up the call log, showing only missed calls.
Intent intent = new Intent(Intent.ACTION_VIEW); intent.setType(CallLog.Calls.CONTENT_TYPE); intent.putExtra(CallLog.Calls.EXTRA_CALL_TYPE_FILTER, CallLog.Calls.MISSED_TYPE); startActivity(intent);
Bit-mask describing features of the call (e.g. video).
Type: INTEGER (int)
Call had video.
A geocoded location for the number associated with this call.
The string represents a city, state, or country associated with the number.
Type: TEXT
Call log type for incoming calls.
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)
Query parameter used to limit the number of call logs returned.
TYPE: integer
Call log type for missed calls.
Whether or not the call has been acknowledged
Type: INTEGER (boolean)
The phone number as the user entered it.
Type: TEXT
The number presenting rules set by the network.
Allowed values:
Type: INTEGER
Query parameter used to specify the starting record to return.
TYPE: integer
Call log type for outgoing calls.
The component name of the account in string form.
Type: TEXT
The identifier of a account that is unique to a specified component.
Type: TEXT
Number is allowed to display for caller id.
Number is a pay phone.
Number is blocked by user.
Number is not specified or unknown by network.
Transcription of the call or voicemail entry. This will only be populated for call log
entries of type VOICEMAIL_TYPE
that have valid transcriptions.
The type of the call (incoming, outgoing or missed).
Type: INTEGER (int)
Call log type for voicemails.
URI of the voicemail entry. Populated only for VOICEMAIL_TYPE
.
Type: TEXT
The content:// style URL for filtering this table on phone numbers
Content uri used to access call log entries, including voicemail records. You must have the READ_CALL_LOG and WRITE_CALL_LOG permissions to read and write to the call log, as well as READ_VOICEMAIL and WRITE_VOICEMAIL permissions to read and write voicemails.
Query the call log database for the last dialed number.
context | Used to get the content resolver. |
---|