Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static final class

VoicemailContract.Voicemails

extends Object
implements BaseColumns OpenableColumns
java.lang.Object
   ↳ android.provider.VoicemailContract.Voicemails

Class Overview

Defines fields exposed through the /voicemail path of this content provider.

Summary

Constants
String DATE The date the voicemail was sent, in milliseconds since the epoch

Type: INTEGER (long)

String DIR_TYPE The MIME type for a collection of voicemails.
String DURATION The duration of the voicemail in seconds.
String HAS_CONTENT Whether the media content for this voicemail is available for consumption.
String IS_READ Whether this item has been read or otherwise consumed by the user.
String ITEM_TYPE The MIME type for a single voicemail.
String MIME_TYPE MIME type of the media content for the voicemail.
String NUMBER Phone number of the voicemail sender.
String SOURCE_DATA Application-specific data available to the source application that inserted the voicemail.
String SOURCE_PACKAGE Package name of the source application that inserted the voicemail.
[Expand]
Inherited Constants
From interface android.provider.BaseColumns
From interface android.provider.OpenableColumns
Fields
public static final Uri CONTENT_URI URI to insert/retrieve voicemails.
Public Methods
static Uri buildSourceUri ( String packageName)
A convenience method to build voicemail URI specific to a source package by appending PARAM_KEY_SOURCE_PACKAGE param to the base URI.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String DATE

The date the voicemail was sent, in milliseconds since the epoch

Type: INTEGER (long)

Constant Value: "date"

public static final String DIR_TYPE

The MIME type for a collection of voicemails.

Constant Value: "vnd.android.cursor.dir/voicemails"

public static final String DURATION

The duration of the voicemail in seconds.

Type: INTEGER (long)

Constant Value: "duration"

public static final String HAS_CONTENT

Whether the media content for this voicemail is available for consumption.

Type: INTEGER (boolean)

Constant Value: "has_content"

public static final String IS_READ

Whether this item has been read or otherwise consumed by the user.

Type: INTEGER (boolean)

Constant Value: "is_read"

public static final String ITEM_TYPE

The MIME type for a single voicemail.

Constant Value: "vnd.android.cursor.item/voicemail"

public static final String MIME_TYPE

MIME type of the media content for the voicemail.

Type: TEXT

Constant Value: "mime_type"

public static final String NUMBER

Phone number of the voicemail sender.

Type: TEXT

Constant Value: "number"

public static final String SOURCE_DATA

Application-specific data available to the source application that inserted the voicemail. This is typically used to store the source specific message id to identify this voicemail on the remote voicemail server.

Type: TEXT

Note that this is NOT the voicemail media content data.

Constant Value: "source_data"

public static final String SOURCE_PACKAGE

Package name of the source application that inserted the voicemail.

Type: TEXT

Constant Value: "source_package"

Fields

public static final Uri CONTENT_URI

URI to insert/retrieve voicemails.

Public Methods

public static Uri buildSourceUri ( String packageName)

A convenience method to build voicemail URI specific to a source package by appending PARAM_KEY_SOURCE_PACKAGE param to the base URI.