Fields Summary |
---|
public static final int | LISTEN_NONEStop listening for updates. |
public static final int | LISTEN_SERVICE_STATEListen for changes to the network service state (cellular). |
public static final int | LISTEN_SIGNAL_STRENGTHListen for changes to the network signal strength (cellular).
Example: The status bar uses this to control the signal-strength
icon. |
public static final int | LISTEN_MESSAGE_WAITING_INDICATORListen for changes to the message-waiting indicator.
Example: The status bar uses this to determine when to display the
voicemail icon. |
public static final int | LISTEN_CALL_FORWARDING_INDICATORListen for changes to the call-forwarding indicator. |
public static final int | LISTEN_CELL_LOCATIONListen for changes to the device's cell location. Note that
this will result in frequent callbacks to the listener.
{@more}
Requires Permission: {@link android.Manifest.permission#ACCESS_COARSE_LOCATION
ACCESS_COARSE_LOCATION}
If you need regular location updates but want more control over
the update interval or location precision, you can set up a listener
through the {@link android.location.LocationManager location manager}
instead. |
public static final int | LISTEN_CALL_STATEListen for changes to the device call state. |
public static final int | LISTEN_DATA_CONNECTION_STATEListen for changes to the data connection state (cellular). |
public static final int | LISTEN_DATA_ACTIVITYListen for changes to the direction of data traffic on the data
connection (cellular).
Example: The status bar uses this to display the appropriate
data-traffic icon. |
com.android.internal.telephony.IPhoneStateListener | callbackThe callback methods need to be called on the handler thread where
this object was created. If the binder did that for us it'd be nice. |
android.os.Handler | mHandler |
Methods Summary |
---|
public void | onCallForwardingIndicatorChanged(boolean cfi)Callback invoked when the call-forwarding indicator changes.
// default implementation empty
|
public void | onCallStateChanged(int state, java.lang.String incomingNumber)Callback invoked when device call state changes.
// default implementation empty
|
public void | onCellLocationChanged(android.telephony.CellLocation location)Callback invoked when device cell location changes.
// default implementation empty
|
public void | onDataActivity(int direction)Callback invoked when data activity state changes.
// default implementation empty
|
public void | onDataConnectionStateChanged(int state)Callback invoked when connection state changes.
// default implementation empty
|
public void | onMessageWaitingIndicatorChanged(boolean mwi)Callback invoked when the message-waiting indicator changes.
// default implementation empty
|
public void | onServiceStateChanged(android.telephony.ServiceState serviceState)Callback invoked when device service state changes.
// default implementation empty
|
public void | onSignalStrengthChanged(int asu)Callback invoked when network signal strength changes.
// default implementation empty
|