java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.view.ContextThemeWrapper
         ↳ android.app.Activity
           ↳ com.android.mms.ui.ComposeMessageActivity

Class Overview

This is the main UI for: 1. Composing a new message; 2. Viewing/managing message history of a conversation. This activity can handle following parameters from the intent by which it's launched. thread_id long Identify the conversation to be viewed. When creating a new message, this parameter shouldn't be present. msg_uri Uri The message which should be opened for editing in the editor. address String The addresses of the recipients in current conversation. exit_on_sent boolean Exit this activity after the message is sent.

Summary

Constants
int REQUEST_CODE_ADD_CONTACT
int REQUEST_CODE_ATTACH_IMAGE
int REQUEST_CODE_ATTACH_SOUND
int REQUEST_CODE_ATTACH_VIDEO
int REQUEST_CODE_CREATE_SLIDESHOW
int REQUEST_CODE_ECM_EXIT_DIALOG
int REQUEST_CODE_RECORD_SOUND
int REQUEST_CODE_TAKE_PICTURE
int REQUEST_CODE_TAKE_VIDEO
[Expand]
Inherited Constants
From class android.app.Activity
From class android.content.Context
From interface android.content.ComponentCallbacks2
Fields
public MessageListAdapter mMsgListAdapter
[Expand]
Inherited Fields
From class android.app.Activity
Public Constructors
ComposeMessageActivity()
Public Methods
static boolean cancelFailedDownloadNotification(Intent intent, Context context)
static boolean cancelFailedToDeliverNotification(Intent intent, Context context)
static Intent createIntent(Context context, long threadId)
void initialize(Bundle savedInstanceState, long originalThreadId)
void loadMessageContent()
void onAttachmentChanged()
Called when an attachment on the message has changed.
void onAttachmentError(int error)
Called if there's an attachment error while resizing the images just before sending.
void onClick(View v)
void onConfigurationChanged(Configuration newConfig)
boolean onEditorAction(TextView v, int actionId, KeyEvent event)
boolean onKeyDown(int keyCode, KeyEvent event)
void onMaxPendingMessagesReached()
Called if there are too many unsent messages in the queue and we're not allowing any more Mms's to be sent.
void onMessageSent()
Called once the process of sending a message, triggered by send has completed.
boolean onOptionsItemSelected(MenuItem item)
void onPreMessageSent()
Called just before the process of sending a message.
boolean onPrepareOptionsMenu(Menu menu)
void onProtocolChanged(boolean mms)
Called when the protocol for sending the message changes from SMS to MMS, and vice versa.
void onSaveInstanceState(Bundle outState)
void onUpdate(Contact updated)
void onUserInteraction()
void onWindowFocusChanged(boolean hasFocus)
void startActivityForResult(Intent intent, int requestCode)
Protected Methods
void onActivityResult(int requestCode, int resultCode, Intent data)
void onCreate(Bundle savedInstanceState)
void onDestroy()
void onNewIntent(Intent intent)
void onPause()
void onRestart()
void onResume()
void onStart()
void onStop()
[Expand]
Inherited Methods
From class android.app.Activity
From class android.view.ContextThemeWrapper
From class android.content.ContextWrapper
From class android.content.Context
From class java.lang.Object
From interface android.content.ComponentCallbacks
From interface android.content.ComponentCallbacks2
From interface android.view.KeyEvent.Callback
From interface android.view.LayoutInflater.Factory
From interface android.view.LayoutInflater.Factory2
From interface android.view.View.OnClickListener
From interface android.view.View.OnCreateContextMenuListener
From interface android.view.Window.Callback
From interface android.widget.TextView.OnEditorActionListener
From interface com.android.mms.data.Contact.UpdateListener
From interface com.android.mms.data.WorkingMessage.MessageStatusListener

Constants

public static final int REQUEST_CODE_ADD_CONTACT

Constant Value: 18 (0x00000012)

public static final int REQUEST_CODE_ATTACH_IMAGE

Constant Value: 10 (0x0000000a)

public static final int REQUEST_CODE_ATTACH_SOUND

Constant Value: 14 (0x0000000e)

public static final int REQUEST_CODE_ATTACH_VIDEO

Constant Value: 12 (0x0000000c)

public static final int REQUEST_CODE_CREATE_SLIDESHOW

Constant Value: 16 (0x00000010)

public static final int REQUEST_CODE_ECM_EXIT_DIALOG

Constant Value: 17 (0x00000011)

public static final int REQUEST_CODE_RECORD_SOUND

Constant Value: 15 (0x0000000f)

public static final int REQUEST_CODE_TAKE_PICTURE

Constant Value: 11 (0x0000000b)

public static final int REQUEST_CODE_TAKE_VIDEO

Constant Value: 13 (0x0000000d)

Fields

public MessageListAdapter mMsgListAdapter

Public Constructors

public ComposeMessageActivity ()

Public Methods

public static boolean cancelFailedDownloadNotification (Intent intent, Context context)

public static boolean cancelFailedToDeliverNotification (Intent intent, Context context)

public static Intent createIntent (Context context, long threadId)

public void initialize (Bundle savedInstanceState, long originalThreadId)

public void loadMessageContent ()

public void onAttachmentChanged ()

Called when an attachment on the message has changed.

public void onAttachmentError (int error)

Called if there's an attachment error while resizing the images just before sending.

public void onClick (View v)

public void onConfigurationChanged (Configuration newConfig)

public boolean onEditorAction (TextView v, int actionId, KeyEvent event)

public boolean onKeyDown (int keyCode, KeyEvent event)

public void onMaxPendingMessagesReached ()

Called if there are too many unsent messages in the queue and we're not allowing any more Mms's to be sent.

public void onMessageSent ()

Called once the process of sending a message, triggered by send has completed. This doesn't mean the send succeeded, just that it has been dispatched to the network.

public boolean onOptionsItemSelected (MenuItem item)

public void onPreMessageSent ()

Called just before the process of sending a message.

public boolean onPrepareOptionsMenu (Menu menu)

public void onProtocolChanged (boolean mms)

Called when the protocol for sending the message changes from SMS to MMS, and vice versa.

Parameters
mms If true, it changed to MMS. If false, to SMS.

public void onSaveInstanceState (Bundle outState)

public void onUpdate (Contact updated)

public void onUserInteraction ()

public void onWindowFocusChanged (boolean hasFocus)

public void startActivityForResult (Intent intent, int requestCode)

Protected Methods

protected void onActivityResult (int requestCode, int resultCode, Intent data)

protected void onCreate (Bundle savedInstanceState)

protected void onDestroy ()

protected void onNewIntent (Intent intent)

protected void onPause ()

protected void onRestart ()

protected void onResume ()

protected void onStart ()

protected void onStop ()