java.lang.Object | |
↳ | com.android.mms.ui.MessageUtils |
An utility class for managing messages.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | IMAGE_COMPRESSION_QUALITY | The quality parameter which is used to compress JPEG images. | |||||||||
int | MESSAGE_OVERHEAD | Message overhead that reduces the maximum image byte size. | |||||||||
int | MINIMUM_IMAGE_COMPRESSION_QUALITY | The minimum quality parameter which is used to compress JPEG images. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns true if the address passed in is a valid MMS address.
| |||||||||||
parse the input address to be a valid MMS address.
| |||||||||||
Play/view the message attachments.
| |||||||||||
Debugging
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The quality parameter which is used to compress JPEG images.
Message overhead that reduces the maximum image byte size. 5000 is a realistic overhead number that allows for user to also include a small MIDI file or a couple pages of text along with the picture.
The minimum quality parameter which is used to compress JPEG images.
Returns true if the address passed in is a valid MMS address.
parse the input address to be a valid MMS address. - if the address is an email address, leave it as is. - if the address can be parsed into a valid MMS phone number, return the parsed number. - if the address is a compliant alias address, leave it as is.
MmsException |
---|
Play/view the message attachments. TOOD: We need to save the draft before launching another activity to view the attachments. This is hacky though since we will do saveDraft twice and slow down the UI. We should pass the slideshow in intent extra to the view activity instead of asking it to read attachments from database.
msgUri | the MMS message URI in database |
---|---|
slideshow | the slideshow to save |
Debugging