android.telephony
Class PhoneStateListener

java.lang.Object
  extended by android.telephony.PhoneStateListener

public class PhoneStateListener
extends Object


Field Summary
static int LISTEN_CALL_FORWARDING_INDICATOR
           
static int LISTEN_CALL_STATE
           
static int LISTEN_CELL_LOCATION
           
static int LISTEN_DATA_ACTIVITY
           
static int LISTEN_DATA_CONNECTION_STATE
           
static int LISTEN_MESSAGE_WAITING_INDICATOR
           
static int LISTEN_NONE
           
static int LISTEN_SERVICE_STATE
           
static int LISTEN_SIGNAL_STRENGTH
           
static int LISTEN_SIGNAL_STRENGTHS
           
 
Constructor Summary
PhoneStateListener()
           
 
Method Summary
 void onCallForwardingIndicatorChanged(boolean cfi)
           
 void onCallStateChanged(int state, String incomingNumber)
           
 void onCellLocationChanged(CellLocation location)
           
 void onDataActivity(int direction)
           
 void onDataConnectionStateChanged(int state)
           
 void onDataConnectionStateChanged(int state, int networkType)
           
 void onMessageWaitingIndicatorChanged(boolean mwi)
           
 void onServiceStateChanged(ServiceState serviceState)
           
 void onSignalStrengthChanged(int asu)
           
 void onSignalStrengthsChanged(SignalStrength signalStrength)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LISTEN_NONE

public static final int LISTEN_NONE
See Also:
Constant Field Values

LISTEN_SERVICE_STATE

public static final int LISTEN_SERVICE_STATE
See Also:
Constant Field Values

LISTEN_SIGNAL_STRENGTH

public static final int LISTEN_SIGNAL_STRENGTH
See Also:
Constant Field Values

LISTEN_MESSAGE_WAITING_INDICATOR

public static final int LISTEN_MESSAGE_WAITING_INDICATOR
See Also:
Constant Field Values

LISTEN_CALL_FORWARDING_INDICATOR

public static final int LISTEN_CALL_FORWARDING_INDICATOR
See Also:
Constant Field Values

LISTEN_CELL_LOCATION

public static final int LISTEN_CELL_LOCATION
See Also:
Constant Field Values

LISTEN_CALL_STATE

public static final int LISTEN_CALL_STATE
See Also:
Constant Field Values

LISTEN_DATA_CONNECTION_STATE

public static final int LISTEN_DATA_CONNECTION_STATE
See Also:
Constant Field Values

LISTEN_DATA_ACTIVITY

public static final int LISTEN_DATA_ACTIVITY
See Also:
Constant Field Values

LISTEN_SIGNAL_STRENGTHS

public static final int LISTEN_SIGNAL_STRENGTHS
See Also:
Constant Field Values
Constructor Detail

PhoneStateListener

public PhoneStateListener()
Method Detail

onServiceStateChanged

public void onServiceStateChanged(ServiceState serviceState)

onSignalStrengthChanged

public void onSignalStrengthChanged(int asu)

onMessageWaitingIndicatorChanged

public void onMessageWaitingIndicatorChanged(boolean mwi)

onCallForwardingIndicatorChanged

public void onCallForwardingIndicatorChanged(boolean cfi)

onCellLocationChanged

public void onCellLocationChanged(CellLocation location)

onCallStateChanged

public void onCallStateChanged(int state,
                               String incomingNumber)

onDataConnectionStateChanged

public void onDataConnectionStateChanged(int state)

onDataConnectionStateChanged

public void onDataConnectionStateChanged(int state,
                                         int networkType)

onDataActivity

public void onDataActivity(int direction)

onSignalStrengthsChanged

public void onSignalStrengthsChanged(SignalStrength signalStrength)


Copyright © 2008-2012. All Rights Reserved.