java.lang.Object | |
↳ | com.android.mms.data.WorkingMessage |
Contains all state related to a message being edited by the user.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
WorkingMessage.MessageStatusListener | Callback interface for communicating important state changes back to ComposeMessageActivity. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ACTION_SENDING_SMS | ||||||||||
int | AUDIO | ||||||||||
String | EXTRA_SMS_MESSAGE | ||||||||||
String | EXTRA_SMS_RECIPIENTS | ||||||||||
String | EXTRA_SMS_THREAD_ID | ||||||||||
int | IMAGE | ||||||||||
int | IMAGE_TOO_LARGE | ||||||||||
int | MESSAGE_SIZE_EXCEEDED | ||||||||||
int | OK | ||||||||||
int | SLIDESHOW | ||||||||||
int | TEXT | ||||||||||
int | UNKNOWN_ERROR | ||||||||||
int | UNSUPPORTED_TYPE | ||||||||||
int | VIDEO |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new working message.
| |||||||||||
Returns the slideshow associated with this message.
| |||||||||||
Returns the MMS subject of the message.
| |||||||||||
Returns the current message text.
| |||||||||||
Returns true if the message has an attachment (including slideshows).
| |||||||||||
Returns true if the message has a real slideshow, as opposed to just
one image attachment, for example.
| |||||||||||
Returns true if this message has an MMS subject.
| |||||||||||
Returns true if the message has any text.
| |||||||||||
Returns true if discard() has been called on this message.
| |||||||||||
Returns true if FORCE_MMS is set.
| |||||||||||
Returns true if this message contains anything worth saving.
| |||||||||||
Create a new WorkingMessage from the specified data URI, which typically
contains an MMS message.
| |||||||||||
Load the draft message for the specified conversation, or a new empty message if
none exists.
| |||||||||||
To be called from our Activity's onCreate() if the activity manager
has given it a Bundle to reinflate
| |||||||||||
Returns true if this message would require MMS to send.
| |||||||||||
Force the message to be saved as MMS and return the Uri of the message.
| |||||||||||
Save this message as a draft in the conversation previously specified
to setConversation.
| |||||||||||
Send this message over the network.
| |||||||||||
Adds an attachment to the message, replacing an old one if it existed.
| |||||||||||
Set the conversation associated with this message.
| |||||||||||
Hint whether or not this message will be delivered to an
an email address.
| |||||||||||
Set whether or not we want to send this message via MMS in order to
avoid sending an excessive number of concatenated SMS messages.
| |||||||||||
Sets the MMS subject of the message.
| |||||||||||
Sets the text of the message to the specified CharSequence.
| |||||||||||
Update the temporary list of recipients, used when setting up a
new conversation.
| |||||||||||
Resolve the temporary working set of recipients to a ContactList.
| |||||||||||
To be called from our Activity's onSaveInstanceState() to give us a chance
to stow our state away for later retrieval.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates a new working message.
Returns true if the message has an attachment (including slideshows).
Returns true if the message has a real slideshow, as opposed to just one image attachment, for example.
Returns true if this message has an MMS subject. A subject has to be more than just whitespace.
Returns true if the message has any text. A message with just whitespace is not considered to have text.
Returns true if discard() has been called on this message.
Returns true if FORCE_MMS is set. When saveAsMms() has been called, we set FORCE_MMS to represent sort of an "invisible attachment" so that the message isn't thrown away when we are shipping it off to other activities.
Returns true if this message contains anything worth saving.
Create a new WorkingMessage from the specified data URI, which typically contains an MMS message.
Load the draft message for the specified conversation, or a new empty message if none exists.
To be called from our Activity's onCreate() if the activity manager has given it a Bundle to reinflate
bundle | The Bundle passed in to onCreate |
---|
Returns true if this message would require MMS to send.
Force the message to be saved as MMS and return the Uri of the message. Typically used when handing a message off to another activity.
Save this message as a draft in the conversation previously specified to setConversation.
Send this message over the network. Will call back with onMessageSent() once it has been dispatched to the telephony stack. This WorkingMessage object is no longer useful after this method has been called.
Adds an attachment to the message, replacing an old one if it existed.
type | Type of this attachment, such as IMAGE |
---|---|
dataUri | Uri containing the attachment data (or null for TEXT) |
append | true if we should add the attachment to a new slide |
Hint whether or not this message will be delivered to an an email address.
Set whether or not we want to send this message via MMS in order to avoid sending an excessive number of concatenated SMS messages.
Sets the MMS subject of the message. Passing null indicates that there is no subject. Passing "" will result in an empty subject being added to the message, possibly triggering a conversion to MMS. This extra bit of state is needed to support ComposeMessageActivity converting to MMS when the user adds a subject. An empty subject will be removed before saving to disk or sending, however.
Update the temporary list of recipients, used when setting up a new conversation. Will be converted to a ContactList on any save event (send, save draft, etc.)
Resolve the temporary working set of recipients to a ContactList.
To be called from our Activity's onSaveInstanceState() to give us a chance to stow our state away for later retrieval.
bundle | The Bundle passed in to onSaveInstanceState |
---|