public class

OutgoingCallBroadcaster

extends Activity
java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.view.ContextThemeWrapper
         ↳ android.app.Activity
           ↳ com.android.phone.OutgoingCallBroadcaster

Class Overview

OutgoingCallBroadcaster receives CALL and CALL_PRIVILEGED Intents, and broadcasts the ACTION_NEW_OUTGOING_CALL intent which allows other applications to monitor, redirect, or prevent the outgoing call. After the other applications have had a chance to see the ACTION_NEW_OUTGOING_CALL intent, it finally reaches the OutgoingCallBroadcaster.OutgoingCallReceiver, which passes the (possibly modified) intent on to the InCallScreen. Emergency calls and calls where no number is present (like for a CDMA "empty flash" or a nonexistent voicemail number) are exempt from being broadcast.

Summary

Nested Classes
class OutgoingCallBroadcaster.OutgoingCallReceiver OutgoingCallReceiver finishes NEW_OUTGOING_CALL broadcasts, starting the InCallScreen if the broadcast has not been canceled, possibly with a modified phone number and optional provider info (uri + package name + remote views.)  
Constants
String EXTRA_ALREADY_CALLED
String EXTRA_NEW_CALL_INTENT
String EXTRA_ORIGINAL_URI
String EXTRA_SEND_EMPTY_FLASH Identifier for intent extra for sending an empty Flash message for CDMA networks.
String EXTRA_SIP_PHONE_URI
[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
OutgoingCallBroadcaster()
Public Methods
void onConfigurationChanged(Configuration newConfig)
Protected Methods
void onCreate(Bundle icicle)
[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.OnCreateContextMenuListener
From interface android.view.Window.Callback

Constants

public static final String EXTRA_ALREADY_CALLED

Constant Value: "android.phone.extra.ALREADY_CALLED"

public static final String EXTRA_NEW_CALL_INTENT

Constant Value: "android.phone.extra.NEW_CALL_INTENT"

public static final String EXTRA_ORIGINAL_URI

Constant Value: "android.phone.extra.ORIGINAL_URI"

public static final String EXTRA_SEND_EMPTY_FLASH

Identifier for intent extra for sending an empty Flash message for CDMA networks. This message is used by the network to simulate a press/depress of the "hookswitch" of a landline phone. Aka "empty flash". TODO: Receiving an intent extra to tell the phone to send this flash is a temporary measure. To be replaced with an external ITelephony call in the future. TODO: Keep in sync with the string defined in TwelveKeyDialer.java in Contacts app until this is replaced with the ITelephony API.

Constant Value: "com.android.phone.extra.SEND_EMPTY_FLASH"

public static final String EXTRA_SIP_PHONE_URI

Constant Value: "android.phone.extra.SIP_PHONE_URI"

Public Constructors

public OutgoingCallBroadcaster ()

Public Methods

public void onConfigurationChanged (Configuration newConfig)

Protected Methods

protected void onCreate (Bundle icicle)