java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.view.ContextThemeWrapper
         ↳ android.app.Activity
           ↳ android.app.ListActivity
             ↳ com.android.contacts.ContactsListActivity
Known Direct Subclasses

Class Overview

Displays a list of contacts. Usually is embedded into the ContactsActivity.

Summary

Nested Classes
class ContactsListActivity.ContactsSearchActivity  
class ContactsListActivity.JoinContactActivity  
Constants
String AUTHORITIES_FILTER_KEY
String EXTRA_AGGREGATE_ID Used with JOIN_AGGREGATE to give it the target for aggregation.
String EXTRA_AGGREGATE_NAME Used with JOIN_AGGREGATE to give it the name of the aggregation target.
String JOIN_AGGREGATE The action for the join contact activity.
[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
ContactsListActivity()
Public Methods
void afterTextChanged(Editable s)
Event handler for search UI.
void beforeTextChanged(CharSequence s, int start, int count, int after)
void onClick(View v)
boolean onContextItemSelected(MenuItem item)
void onCreateContextMenu(ContextMenu menu, View view, ContextMenu.ContextMenuInfo menuInfo)
boolean onCreateOptionsMenu(Menu menu)
boolean onEditorAction(TextView v, int actionId, KeyEvent event)
Event handler for search UI.
void onFocusChange(View view, boolean hasFocus)
Dismisses the soft keyboard when the list takes focus.
boolean onKey(View v, int keyCode, KeyEvent event)
Event handler for the use case where the user starts typing without bringing up the search UI first.
boolean onKeyDown(int keyCode, KeyEvent event)
boolean onKeyPreIme(int keyCode, KeyEvent event)
Dismisses the search UI along with the keyboard if the filter text is empty.
boolean onOptionsItemSelected(MenuItem item)
boolean onPrepareOptionsMenu(Menu menu)
void onTextChanged(CharSequence s, int start, int before, int count)
boolean onTouch(View view, MotionEvent event)
Dismisses the soft keyboard when the list takes focus.
void startSearch(String initialQuery, boolean selectInitialQuery, Bundle appSearchData, boolean globalSearch)
Protected Methods
void doContactDelete(Uri contactUri)
Prompt the user before deleting the given Contacts entry.
String getQuantityText(int count, int zeroResourceId, int pluralResourceId)
void onActivityResult(int requestCode, int resultCode, Intent data)
void onCreate(Bundle icicle)
Dialog onCreateDialog(int id, Bundle bundle)
void onDestroy()
void onListItemClick(ListView l, View v, int position, long id)
void onPause()
void onRestart()
void onRestoreInstanceState(Bundle icicle)
void onResume()
void onSaveInstanceState(Bundle icicle)
void onSearchTextChanged()
Performs filtering of the list based on the search query entered in the search text edit.
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.text.TextWatcher
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.View.OnFocusChangeListener
From interface android.view.View.OnKeyListener
From interface android.view.View.OnTouchListener
From interface android.view.Window.Callback
From interface android.widget.TextView.OnEditorActionListener

Constants

public static final String AUTHORITIES_FILTER_KEY

Constant Value: "authorities"

public static final String EXTRA_AGGREGATE_ID

Used with JOIN_AGGREGATE to give it the target for aggregation.

Type: LONG

Constant Value: "com.android.contacts.action.AGGREGATE_ID"

public static final String EXTRA_AGGREGATE_NAME

Used with JOIN_AGGREGATE to give it the name of the aggregation target.

Type: STRING

Constant Value: "com.android.contacts.action.AGGREGATE_NAME"

public static final String JOIN_AGGREGATE

The action for the join contact activity.

Input: extra field EXTRA_AGGREGATE_ID is the aggregate ID. TODO: move to ContactsContract.

Constant Value: "com.android.contacts.action.JOIN_AGGREGATE"

Public Constructors

public ContactsListActivity ()

Public Methods

public void afterTextChanged (Editable s)

Event handler for search UI.

public void beforeTextChanged (CharSequence s, int start, int count, int after)

public void onClick (View v)

public boolean onContextItemSelected (MenuItem item)

public void onCreateContextMenu (ContextMenu menu, View view, ContextMenu.ContextMenuInfo menuInfo)

public boolean onCreateOptionsMenu (Menu menu)

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

Event handler for search UI.

public void onFocusChange (View view, boolean hasFocus)

Dismisses the soft keyboard when the list takes focus.

public boolean onKey (View v, int keyCode, KeyEvent event)

Event handler for the use case where the user starts typing without bringing up the search UI first.

public boolean onKeyDown (int keyCode, KeyEvent event)

public boolean onKeyPreIme (int keyCode, KeyEvent event)

Dismisses the search UI along with the keyboard if the filter text is empty.

public boolean onOptionsItemSelected (MenuItem item)

public boolean onPrepareOptionsMenu (Menu menu)

public void onTextChanged (CharSequence s, int start, int before, int count)

public boolean onTouch (View view, MotionEvent event)

Dismisses the soft keyboard when the list takes focus.

public void startSearch (String initialQuery, boolean selectInitialQuery, Bundle appSearchData, boolean globalSearch)

Protected Methods

protected void doContactDelete (Uri contactUri)

Prompt the user before deleting the given Contacts entry.

protected String getQuantityText (int count, int zeroResourceId, int pluralResourceId)

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

protected void onCreate (Bundle icicle)

protected Dialog onCreateDialog (int id, Bundle bundle)

protected void onDestroy ()

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

protected void onPause ()

protected void onRestart ()

protected void onRestoreInstanceState (Bundle icicle)

protected void onResume ()

protected void onSaveInstanceState (Bundle icicle)

protected void onSearchTextChanged ()

Performs filtering of the list based on the search query entered in the search text edit.

protected void onStart ()

protected void onStop ()