Telephony.Mms.Part


public static final class Telephony.Mms.Part
extends Object implements BaseColumns

java.lang.Object
   ↳ android.provider.Telephony.Mms.Part


Contains message parts. To avoid issues where applications might cache a part ID, the ID of a deleted part must not be reused to point at a new part.

Summary

Constants

String CHARSET

The charset of the part.

String CONTENT_DISPOSITION

The content disposition of the part.

String CONTENT_ID

The content ID of the part.

String CONTENT_LOCATION

The content location of the part.

String CONTENT_TYPE

The content type of the part.

String CT_START

The start of content-type of the message.

String CT_TYPE

The type of content-type of the message.

String FILENAME

The file name of the part.

String MSG_ID

The identifier of the message which this part belongs to.

String NAME

The name of the part.

String SEQ

The order of the part.

String TEXT

The message text.

String _DATA

The location (on filesystem) of the binary data of the part.

Inherited constants

String _COUNT

The count of rows in a directory.

String _ID

The unique ID for a row.

Fields

public static final Uri CONTENT_URI

The content:// style URL for this table.

Public methods

static Uri getPartUriForMessage(String messageId)

Generates a Part Uri for message, used to perform Part table operation for mms.

Inherited methods

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Constants

CHARSET

Added in API level 19
public static final String CHARSET

The charset of the part.

Type: TEXT

Constant Value: "chset"

CONTENT_DISPOSITION

Added in API level 19
public static final String CONTENT_DISPOSITION

The content disposition of the part.

Type: TEXT

Constant Value: "cd"

CONTENT_ID

Added in API level 19
public static final String CONTENT_ID

The content ID of the part.

Type: INTEGER

Constant Value: "cid"

CONTENT_LOCATION

Added in API level 19
public static final String CONTENT_LOCATION

The content location of the part.

Type: INTEGER

Constant Value: "cl"

CONTENT_TYPE

Added in API level 19
public static final String CONTENT_TYPE

The content type of the part.

Type: TEXT

Constant Value: "ct"

CT_START

Added in API level 19
public static final String CT_START

The start of content-type of the message.

Type: INTEGER

Constant Value: "ctt_s"

CT_TYPE

Added in API level 19
public static final String CT_TYPE

The type of content-type of the message.

Type: TEXT

Constant Value: "ctt_t"

FILENAME

Added in API level 19
public static final String FILENAME

The file name of the part.

Type: TEXT

Constant Value: "fn"

MSG_ID

Added in API level 19
public static final String MSG_ID

The identifier of the message which this part belongs to.

Type: INTEGER

Constant Value: "mid"

NAME

Added in API level 19
public static final String NAME

The name of the part.

Type: TEXT

Constant Value: "name"

SEQ

Added in API level 19
public static final String SEQ

The order of the part.

Type: INTEGER

Constant Value: "seq"

TEXT

Added in API level 19
public static final String TEXT

The message text.

Type: TEXT

Constant Value: "text"

_DATA

Added in API level 19
public static final String _DATA

The location (on filesystem) of the binary data of the part.

Type: INTEGER

Constant Value: "_data"

Fields

CONTENT_URI

Added in API level 29
public static final Uri CONTENT_URI

The content:// style URL for this table. Can be appended with a part ID to address individual parts.

Public methods

getPartUriForMessage

Added in API level 30
public static Uri getPartUriForMessage (String messageId)

Generates a Part Uri for message, used to perform Part table operation for mms.

Parameters
messageId String: the messageId used to generate Part Uri dynamically This value cannot be null.

Returns
Uri the partUri used to perform Part table operation for mms This value cannot be null.