The Device interface is used to give information about the GSM or CDMA device and its capabilities. Use it also to enable or disable the RF subsystem (which is mandatory for implementing a flight mode).
org.freesmartphone.GSM.Device
Description: Retrieve the current functionality status of the device.
The functionality level. Expected values are:
Whether the device tries to maintain registration with a provider. This parameter is only valid, if level = "full".
s: pinThe SIM PIN being used to authenticate if necessary, or an empty string. This parameter is only valid, if level = "full" or "airplane".
Description: Set the functionality status for this device.
See GetFunctionality
b: autoregisterWhether the device should try to maintain registration with a provider. This parameter is only valid, if level = "full".
s: pinThe SIM PIN being used to authenticate if necessary, or an empty string. This parameter is only valid, if level = "full" or "airplane".
Description: Get information about the telephony features supported by this device.
The telephony features supported by this device. Valid tuples are:
Description: Retrieve the current device status. SIM commands, such as ListPhonebooks can not be performed before the device is in the status 'alive-sim-ready'.
The device status. Expected values are:
Description: Retrieve the current loudspeaker volume.
The volume in percent (0-100).
Description: Set the current loudspeaker volume.
This maps to the GSM 07.07 command +CLVL=... see 3GPP TS 07.07 Chapter 8.2.3.
The volume in percent (0-100).
Description: Retrieve whether the microphone is currently muted.
This maps to the GSM 07.07 command +CMUT?, see 3GPP TS 07.07 Chapter 8.2.4.
True, if the microphone is muted. False, otherwise.
Description: Mute or unmute the microphone.
This maps to the GSM 07.07 command +CMUT=... see 3GPP TS 07.07 Chapter 8.2.4.
True, to mute the microphone. False, otherwise.
Description: Sent on a change in device status.
The device status. See GetDeviceStatus for expected values.
Description: Sent, when a keypad input event occurs.
The name of the event source.
b: pressedTrue, if the keypad key has been pressed. False, otherwise.