public static class CallLog.Calls extends Object implements BaseColumns
Modifier and Type | Field and Description |
---|---|
static 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.
|
static String |
CACHED_FORMATTED_NUMBER
The cached formatted phone number.
|
static String |
CACHED_LOOKUP_URI
The cached URI to look up the contact associated with the phone number, if it exists.
|
static String |
CACHED_MATCHED_NUMBER
The cached phone number of the contact which matches this entry, if it exists.
|
static String |
CACHED_NAME
The cached name associated with the phone number, if it exists.
|
static String |
CACHED_NORMALIZED_NUMBER
The cached normalized version of 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 String |
CACHED_PHOTO_ID
The cached photo id of the picture 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 Uri |
CONTENT_URI_WITH_VOICEMAIL
Content uri with
ALLOW_VOICEMAILS_PARAM_KEY set. |
static String |
COUNTRY_ISO
The ISO 3166-1 two letters country code of the country where the
user received or made the call.
|
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 String |
GEOCODED_LOCATION
A geocoded location for the number associated with this call.
|
static int |
INCOMING_TYPE
Call log type for incoming calls.
|
static String |
IS_READ
Whether this item has been read or otherwise consumed by the user.
|
static String |
LIMIT_PARAM_KEY
Query parameter used to limit the number of call logs returned.
|
static int |
MISSED_TYPE
Call log type for missed calls.
|
static String |
NEW
Whether or not the call has been acknowledged
|
static String |
NUMBER
The phone number as the user entered it.
|
static String |
OFFSET_PARAM_KEY
Query parameter used to specify the starting record to return.
|
static int |
OUTGOING_TYPE
Call log type for outgoing calls.
|
static String |
TYPE
The type of the call (incoming, outgoing or missed).
|
static int |
VOICEMAIL_TYPE
Call log type for voicemails.
|
static String |
VOICEMAIL_URI
URI of the voicemail entry.
|
_COUNT, _ID
Constructor and Description |
---|
CallLog.Calls() |
Modifier and Type | Method and Description |
---|---|
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.
|
static String |
getLastOutgoingCall(Context context)
Query the call log database for the last dialed number.
|
public static final Uri CONTENT_URI
public static final Uri CONTENT_FILTER_URI
public static final String LIMIT_PARAM_KEY
TYPE: integer
public static final String OFFSET_PARAM_KEY
TYPE: integer
public static final String ALLOW_VOICEMAILS_PARAM_KEY
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.
public static final Uri CONTENT_URI_WITH_VOICEMAIL
ALLOW_VOICEMAILS_PARAM_KEY
set. This can directly be used to
access call log entries that includes voicemail records.public static final String DEFAULT_SORT_ORDER
public static final String CONTENT_TYPE
CONTENT_URI
and CONTENT_FILTER_URI
providing a directory of calls.public static final String CONTENT_ITEM_TYPE
CONTENT_URI
sub-directory of a single
call.public static final String TYPE
Type: INTEGER (int)
public static final int INCOMING_TYPE
public static final int OUTGOING_TYPE
public static final int MISSED_TYPE
public static final int VOICEMAIL_TYPE
public static final String NUMBER
Type: TEXT
public static final String COUNTRY_ISO
Type: TEXT
public static final String DATE
Type: INTEGER (long)
public static final String DURATION
Type: INTEGER (long)
public static final String NEW
Type: INTEGER (boolean)
public static final String CACHED_NAME
Type: TEXT
public static final String CACHED_NUMBER_TYPE
Type: INTEGER
public static final String CACHED_NUMBER_LABEL
Type: TEXT
public static final String VOICEMAIL_URI
VOICEMAIL_TYPE
.
Type: TEXT
public static final String IS_READ
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)
public static final String GEOCODED_LOCATION
The string represents a city, state, or country associated with the number.
Type: TEXT
public static final String CACHED_LOOKUP_URI
Type: TEXT
public static final String CACHED_MATCHED_NUMBER
Type: TEXT
public static final String CACHED_NORMALIZED_NUMBER
Type: TEXT
public static final String CACHED_PHOTO_ID
Type: INTEGER (long)
public static final String CACHED_FORMATTED_NUMBER
Type: TEXT
public static Uri addCall(com.android.internal.telephony.CallerInfo ci, Context context, String number, int presentation, int callType, long start, int duration)
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 ContentResolvernumber
- the phone number to be added to the calls dbpresentation
- 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 millisecondsduration
- call duration in seconds