public class

ConversationList

extends ListActivity
implements DraftCache.OnDraftChangedListener
java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.view.ContextThemeWrapper
         ↳ android.app.Activity
           ↳ android.app.ListActivity
             ↳ com.android.mms.ui.ConversationList

Class Overview

This activity provides a list view of existing conversations.

Summary

Nested Classes
class ConversationList.DeleteThreadListener  
Constants
int DELETE_CONVERSATION_TOKEN
int HAVE_LOCKED_MESSAGES_TOKEN
int MENU_ADD_TO_CONTACTS
int MENU_COMPOSE_NEW
int MENU_DELETE
int MENU_DELETE_ALL
int MENU_PREFERENCES
int MENU_SEARCH
int MENU_VIEW
int MENU_VIEW_CONTACT
[Expand]
Inherited Constants
From class android.app.Activity
From class android.content.Context
From interface android.content.ComponentCallbacks2
[Expand]
Inherited Fields
From class android.app.Activity
Public Constructors
ConversationList()
Public Methods
static void confirmDeleteThread(long threadId, AsyncQueryHandler handler)
Start the process of putting up a dialog to confirm deleting a thread, but first start a background query to see if any of the threads or thread contain locked messages so we'll know how detailed of a UI to display.
static void confirmDeleteThreadDialog(ConversationList.DeleteThreadListener listener, boolean deleteAll, boolean hasLockedMessages, Context context)
Build and show the proper delete thread dialog.
static Intent createAddContactIntent(String address)
void onConfigurationChanged(Configuration newConfig)
boolean onContextItemSelected(MenuItem item)
void onDraftChanged(long threadId, boolean hasDraft)
boolean onOptionsItemSelected(MenuItem item)
boolean onPrepareOptionsMenu(Menu menu)
boolean onSearchRequested()
synchronized void runOneTimeStorageLimitCheckForLegacyMessages()
Checks to see if the number of MMS and SMS messages are under the limits for the recycler.
Protected Methods
void onCreate(Bundle savedInstanceState)
void onListItemClick(ListView l, View v, int position, long id)
void onNewIntent(Intent intent)
void onStart()
void onStop()
[Expand]
Inherited Methods
From class android.app.ListActivity
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.OnCreateContextMenuListener
From interface android.view.Window.Callback
From interface com.android.mms.util.DraftCache.OnDraftChangedListener

Constants

public static final int DELETE_CONVERSATION_TOKEN

Constant Value: 1801 (0x00000709)

public static final int HAVE_LOCKED_MESSAGES_TOKEN

Constant Value: 1802 (0x0000070a)

public static final int MENU_ADD_TO_CONTACTS

Constant Value: 3 (0x00000003)

public static final int MENU_COMPOSE_NEW

Constant Value: 0 (0x00000000)

public static final int MENU_DELETE

Constant Value: 0 (0x00000000)

public static final int MENU_DELETE_ALL

Constant Value: 3 (0x00000003)

public static final int MENU_PREFERENCES

Constant Value: 4 (0x00000004)

public static final int MENU_SEARCH

Constant Value: 1 (0x00000001)

public static final int MENU_VIEW

Constant Value: 1 (0x00000001)

public static final int MENU_VIEW_CONTACT

Constant Value: 2 (0x00000002)

Public Constructors

public ConversationList ()

Public Methods

public static void confirmDeleteThread (long threadId, AsyncQueryHandler handler)

Start the process of putting up a dialog to confirm deleting a thread, but first start a background query to see if any of the threads or thread contain locked messages so we'll know how detailed of a UI to display.

Parameters
threadId id of the thread to delete or -1 for all threads
handler query handler to do the background locked query

public static void confirmDeleteThreadDialog (ConversationList.DeleteThreadListener listener, boolean deleteAll, boolean hasLockedMessages, Context context)

Build and show the proper delete thread dialog. The UI is slightly different depending on whether there are locked messages in the thread(s) and whether we're deleting a single thread or all threads.

Parameters
listener gets called when the delete button is pressed
deleteAll whether to show a single thread or all threads UI
hasLockedMessages whether the thread(s) contain locked messages
context used to load the various UI elements

public static Intent createAddContactIntent (String address)

public void onConfigurationChanged (Configuration newConfig)

public boolean onContextItemSelected (MenuItem item)

public void onDraftChanged (long threadId, boolean hasDraft)

public boolean onOptionsItemSelected (MenuItem item)

public boolean onPrepareOptionsMenu (Menu menu)

public boolean onSearchRequested ()

public synchronized void runOneTimeStorageLimitCheckForLegacyMessages ()

Checks to see if the number of MMS and SMS messages are under the limits for the recycler. If so, it will automatically turn on the recycler setting. If not, it will prompt the user with a message and point them to the setting to manually turn on the recycler.

Protected Methods

protected void onCreate (Bundle savedInstanceState)

protected void onListItemClick (ListView l, View v, int position, long id)

protected void onNewIntent (Intent intent)

protected void onStart ()

protected void onStop ()