public class

EmergencyDialer

extends Activity
implements TextWatcher View.OnClickListener View.OnKeyListener View.OnLongClickListener
java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.view.ContextThemeWrapper
         ↳ android.app.Activity
           ↳ com.android.phone.EmergencyDialer

Class Overview

EmergencyDialer is a special dialer that is used ONLY for dialing emergency calls. It's a simplified version of the regular dialer (i.e. the TwelveKeyDialer activity from apps/Contacts) that: 1. Allows ONLY emergency calls to be dialed 2. Disallows voicemail functionality 3. Uses the FLAG_SHOW_WHEN_LOCKED window manager flag to allow this activity to stay in front of the keyguard. TODO: Even though this is an ultra-simplified version of the normal dialer, there's still lots of code duplication between this class and the TwelveKeyDialer class from apps/Contacts. Could the common code be moved into a shared base class that would live in the framework? Or could we figure out some way to move *this* class into apps/Contacts also?

Summary

Constants
String ACTION_DIAL
[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
EmergencyDialer()
Public Methods
void afterTextChanged(Editable input)
void beforeTextChanged(CharSequence s, int start, int count, int after)
void onClick(View view)
boolean onKey(View view, int keyCode, KeyEvent event)
boolean onKeyDown(int keyCode, KeyEvent event)
handle key events
boolean onLongClick(View view)
called for long touch events
void onPause()
void onTextChanged(CharSequence input, int start, int before, int changeCount)
Protected Methods
void maybeAddNumberFormatting()
Explicitly turn off number formatting, since it gets in the way of the emergency number detector
void onCreate(Bundle icicle)
Dialog onCreateDialog(int id)
void onDestroy()
void onPostCreate(Bundle savedInstanceState)
void onPrepareDialog(int id, Dialog dialog)
void onRestoreInstanceState(Bundle icicle)
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.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.OnKeyListener
From interface android.view.View.OnLongClickListener
From interface android.view.Window.Callback

Constants

public static final String ACTION_DIAL

Constant Value: "com.android.phone.EmergencyDialer.DIAL"

Public Constructors

public EmergencyDialer ()

Public Methods

public void afterTextChanged (Editable input)

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

public void onClick (View view)

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

public boolean onKeyDown (int keyCode, KeyEvent event)

handle key events

public boolean onLongClick (View view)

called for long touch events

public void onPause ()

public void onTextChanged (CharSequence input, int start, int before, int changeCount)

Protected Methods

protected void maybeAddNumberFormatting ()

Explicitly turn off number formatting, since it gets in the way of the emergency number detector

protected void onCreate (Bundle icicle)

protected Dialog onCreateDialog (int id)

protected void onDestroy ()

protected void onPostCreate (Bundle savedInstanceState)

protected void onPrepareDialog (int id, Dialog dialog)

protected void onRestoreInstanceState (Bundle icicle)

protected void onResume ()

protected void onSaveInstanceState (Bundle outState)