public final class

EditContactActivity

extends Activity
implements View.OnClickListener Comparator<T>
java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.view.ContextThemeWrapper
         ↳ android.app.Activity
           ↳ com.android.contacts.ui.EditContactActivity

Class Overview

Activity for editing or inserting a contact.

Summary

Nested Classes
class EditContactActivity.PersistTask Background task for persisting edited contact data, using the changes defined by a set of EntityDelta
Constants
int RESULT_CLOSE_VIEW_ACTIVITY The result code when view activity should close after edit returns
int SAVE_MODE_DEFAULT
int SAVE_MODE_JOIN
int SAVE_MODE_SPLIT
[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
EditContactActivity()
Public Methods
int compare(EntityDelta one, EntityDelta two)
Compare EntityDeltas for sorting the stack of editors.
static Intent getCropImageIntent(Uri photoUri)
Constructs an intent for image cropping.
static Intent getPhotoPickIntent()
Constructs an intent for picking a photo from Gallery, cropping it and returning the bitmap.
static Intent getTakePickIntent(File f)
Constructs an intent for capturing a photo and storing it in a temporary file.
void onBackPressed()
void onClick(View view)
boolean onCreateOptionsMenu(Menu menu)
void onDeleted(Editor editor)
boolean onOptionsItemSelected(MenuItem item)
boolean onPrepareOptionsMenu(Menu menu)
void selectAccountAndCreateContact(ArrayList<Account> accounts)
void showJoinAggregateActivity(Uri contactLookupUri)
Shows a list of aggregates that can be joined into the currently viewed aggregate.
void startSearch(String initialQuery, boolean selectInitialQuery, Bundle appSearchData, boolean globalSearch)
Protected Methods
void bindEditors()
Rebuild the editors to match our underlying #mState object, usually called once we've parsed Entity data or have inserted a new RawContacts.
void doCropPhoto(File f)
Sends a newly acquired photo to Gallery for cropping
void doPickPhotoFromGallery()
Launches Gallery to pick a photo.
void doTakePhoto()
Launches Camera to take a picture and store it in a file.
boolean hasValidState()
Check if our internal #mState is valid, usually checked before performing user actions.
void onActivityResult(int requestCode, int resultCode, Intent data)
void onCreate(Bundle icicle)
Dialog onCreateDialog(int id, Bundle bundle)
void onDestroy()
void onPause()
void onRestoreInstanceState(Bundle savedInstanceState)
void onResume()
void onSaveInstanceState(Bundle outState)
[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 java.util.Comparator

Constants

public static final int RESULT_CLOSE_VIEW_ACTIVITY

The result code when view activity should close after edit returns

Constant Value: 777 (0x00000309)

public static final int SAVE_MODE_DEFAULT

Constant Value: 0 (0x00000000)

public static final int SAVE_MODE_JOIN

Constant Value: 2 (0x00000002)

public static final int SAVE_MODE_SPLIT

Constant Value: 1 (0x00000001)

Public Constructors

public EditContactActivity ()

Public Methods

public int compare (EntityDelta one, EntityDelta two)

Compare EntityDeltas for sorting the stack of editors.

public static Intent getCropImageIntent (Uri photoUri)

Constructs an intent for image cropping.

public static Intent getPhotoPickIntent ()

Constructs an intent for picking a photo from Gallery, cropping it and returning the bitmap.

public static Intent getTakePickIntent (File f)

Constructs an intent for capturing a photo and storing it in a temporary file.

public void onBackPressed ()

public void onClick (View view)

public boolean onCreateOptionsMenu (Menu menu)

public void onDeleted (Editor editor)

public boolean onOptionsItemSelected (MenuItem item)

public boolean onPrepareOptionsMenu (Menu menu)

public void selectAccountAndCreateContact (ArrayList<Account> accounts)

public void showJoinAggregateActivity (Uri contactLookupUri)

Shows a list of aggregates that can be joined into the currently viewed aggregate.

Parameters
contactLookupUri the fresh URI for the currently edited contact (after saving it)

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

Protected Methods

protected void bindEditors ()

Rebuild the editors to match our underlying #mState object, usually called once we've parsed Entity data or have inserted a new RawContacts.

protected void doCropPhoto (File f)

Sends a newly acquired photo to Gallery for cropping

protected void doPickPhotoFromGallery ()

Launches Gallery to pick a photo.

protected void doTakePhoto ()

Launches Camera to take a picture and store it in a file.

protected boolean hasValidState ()

Check if our internal #mState is valid, usually checked before performing user actions.

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 onPause ()

protected void onRestoreInstanceState (Bundle savedInstanceState)

protected void onResume ()

protected void onSaveInstanceState (Bundle outState)