Skip to content

Most visited

Recently visited

navigation

Telephony.Sms

public static final class Telephony.Sms
extends Object implements BaseColumns, Telephony.TextBasedSmsColumns

java.lang.Object
   ↳ android.provider.Telephony.Sms


Contains all text-based SMS messages.

Summary

Nested classes

class Telephony.Sms.Conversations

Contains all sent text-based SMS messages in the SMS app. 

class Telephony.Sms.Draft

Contains all sent text-based SMS messages in the SMS app. 

class Telephony.Sms.Inbox

Contains all text-based SMS messages in the SMS app inbox. 

class Telephony.Sms.Intents

Contains constants for SMS related Intents that are broadcast. 

class Telephony.Sms.Outbox

Contains all pending outgoing text-based SMS messages. 

class Telephony.Sms.Sent

Contains all sent text-based SMS messages in the SMS app. 

Constants

String DEFAULT_SORT_ORDER

The default sort order for this table.

Inherited constants

From interface android.provider.BaseColumns
From interface android.provider.Telephony.TextBasedSmsColumns

Fields

public static final Uri CONTENT_URI

The content:// style URL for this table.

Public methods

static String getDefaultSmsPackage(Context context)

Used to determine the currently configured default SMS package.

Inherited methods

From class java.lang.Object

Constants

DEFAULT_SORT_ORDER

Added in API level 19
String DEFAULT_SORT_ORDER

The default sort order for this table.

Constant Value: "date DESC"

Fields

CONTENT_URI

Added in API level 19
Uri CONTENT_URI

The content:// style URL for this table.

Public methods

getDefaultSmsPackage

Added in API level 19
String getDefaultSmsPackage (Context context)

Used to determine the currently configured default SMS package.

Parameters
context Context: context of the requesting application
Returns
String package name for the default SMS package or null
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.