Android Programming Press on the image to return to the main documentation page.

PhoneStateListener

Written by XverhelstX

List of types:

PhoneStateListener

PhoneStateListener


Permissions:

android.permission.ACCESS_COARSE_LOCATION
android.permission.ACCESS_NETWORK_STATE
android.permission.CHANGE_NETWORK_STATE
android.permission.ACCESS_COARSE_UPDATES
android.permission.READ_PHONE_STATE

Events:

None

Members:


  CdmaDbm As Int [read only]

  CdmaEcio As Int [read only]

  CellLocation As String [read only]

  EvdoDbm As Int [read only]

  EvdoEcio As Int [read only]

  EvdoSnr As Int [read only]

  GsmBitErrorRate As Int [read only]

  GsmSignalStrength As Int [read only]

  Initialize (EventName As String, EnableLogging As Boolean)

  isGSM As Boolean

  LISTEN_CALL_FORWARDING_INDICATOR As Int

  LISTEN_CALL_STATE As Int

  LISTEN_CELL_LOCATION As Int

  LISTEN_DATA_ACTIVITY As Int

  LISTEN_DATA_CONNECTION_STATE As Int

  LISTEN_MESSAGE_WAITING_INDICATOR As Int

  LISTEN_NONE As Int

  LISTEN_SERVICE_STATE As Int

  LISTEN_SIGNAL_STRENGTHS As Int

  objCellLocation As Object

  objServiceState As Object

  objSignalStrength As Object

  startListening

  startListeningForEvent (Event As Int)

  stopListening

  stopListeningForEvent

Members description:

CdmaDbm As Int [read only]
Get the CDMA RSSI value in dBm
CdmaEcio As Int [read only]
Get the CDMA Ec/Io value in dB*10
CellLocation As String [read only]
Gets the cell location in a string.
EvdoDbm As Int [read only]
Get the EVDO RSSI value in dBm
EvdoEcio As Int [read only]
Get the EVDO Ec/Io value in dB*10
EvdoSnr As Int [read only]
Get the signal to noise ratio.
GsmBitErrorRate As Int [read only]
Get the GSM bit error rate (0-7, 99) as defined in TS 27.007 8.5
GsmSignalStrength As Int [read only]
Get the GSM Signal Strength, valid values are (0-31, 99) as defined in TS 27.007 8.5
Initialize (EventName As String, EnableLogging As Boolean)
Initializes the PhoneStateListener.
EventName - Events subs prefix.
isGSM As Boolean
LISTEN_CALL_FORWARDING_INDICATOR As Int
LISTEN_CALL_STATE As Int
LISTEN_CELL_LOCATION As Int
LISTEN_DATA_ACTIVITY As Int
LISTEN_DATA_CONNECTION_STATE As Int
LISTEN_MESSAGE_WAITING_INDICATOR As Int
LISTEN_NONE As Int
LISTEN_SERVICE_STATE As Int
LISTEN_SIGNAL_STRENGTHS As Int
objCellLocation As Object
Returns the CellLocation.
CellLocation has a value when onCellLocationChanged is called.
You can work with this object in the Reflector library.
Return type: @return:
objServiceState As Object
Returns the ServiceState.
ServiceState1 has a value when onServiceStateChanged is called.
You can work with this object in the Reflector library.
Return type: @return:
objSignalStrength As Object
Returns the SignalStrength.
SignalStrength has a value when onSignalStrengthsChanged is called.
You can work with this object in the Reflector library.
Return type: @return:
startListening
Starts listening for all PhoneStateListener Events.
Use startListeningForEvent for specific events.
startListeningForEvent (Event As Int)
Starts listening for specific event in the phone.
See the LISTEN_Attributes
stopListening
Stops listening for all PhoneStateListener Events.
Use stopListeningForEvent to stop specific events.
stopListeningForEvent
Stops listening for PhoneStateListener Events called from StartListeningForEvent.
Top