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

SimCard

Written by Devil-App

List of types:

SimCard

SimCard


Permissions:

android.permission.READ_PHONE_STATE

Events:

None

Members:


  GetDataActivity As String

  GetDataState As String

  GetLine1Number As String

  GetLine2Number As String

  GetMmsAgent As String

  GetMmsURL As String

  GetNetworkCountryIso As String

  GetNetworkOperator As String

  GetNetworkOperatorName As String

  GetPhoneType As String

  GetSimCountryIso As String

  GetSimOperator As String

  GetSimOperatorName As String

  GetSimSerialNumber1 As String

  GetSimSerialNumber2 As String

  GetSimState As String

  GetSubscriberId As String

  GetVoiceMailAlphaTag As String

  GetVoiceMailNumber As String

  HasIccCard As Boolean

  Imei As String

  Imei2 As String

  Initialize

  IsDualSIM As Boolean

  IsNetworkRoaming As Boolean

Members description:

GetDataActivity As String
Returns a constant indicating the type of activity on a data connection (cellular).
Return DATA_ACTIVITY_NONE
Return DATA_ACTIVITY_IN
Return DATA_ACTIVITY_OUT
Return DATA_ACTIVITY_INOUT
Return DATA_ACTIVITY_DORMANT
Example:
Dim sim As SimCard
Dim torna As String
torna = sim.GetDataActivity
GetDataState As String
Returns a constant indicating the current data connection state (cellular).
Return DATA_DISCONNECTED
Return DATA_CONNECTING
Return DATA_CONNECTED
Return DATA_SUSPENDED
Example:
Dim sim As SimCard
Dim torna As String
torna = sim.GetDataState
GetLine1Number As String
Reads NumberPhone-1 and returns its content as a string.
Example:
Dim sim As SimCard
Dim text As String
text = sim.GetLine1Number
GetLine2Number As String
Reads NumberPhone-2 and returns its content as a string.
Example:
Note: Utilize sim.IsDualSIM
Dim sim As SimCard
Dim text As String
text = sim.GetLine2Number
GetMmsAgent As String
Reads MMS user Agent and returns its content as a string.
Example:
Dim sim As SimCard
Dim text As String
text = sim.GetMmsAgent
GetMmsURL As String
Reads MMS user Agent profile URL and returns its content as a string.
Example:
Dim sim As SimCard
Dim text As String
text = sim.GetMmsURL
GetNetworkCountryIso As String
Returns the ISO country code equivalent of the current registered operator's MCC (Mobile Country Code) and returns its content as a string.
Example:
Dim sim As SimCard
Dim text As String
text = sim.GetNetworkCountryIso
GetNetworkOperator As String
Returns the numeric name (MCC+MNC) of current registered operator and returns its content as a string.
Example:
Dim sim As SimCard
Dim text As String
text = sim.GetNetworkOperator
GetNetworkOperatorName As String
Returns the operator name (MCC+MNC) of current registered operator and returns its content as a string.
Example:
Dim sim As SimCard
Dim text As String
text = sim.GetNetworkOperator
GetPhoneType As String
Returns a constant indicating the device phone type. This indicates the type of radio used to transmit voice calls.
Return PHONE_TYPE_NONE
Return PHONE_TYPE_GSM
Return PHONE_TYPE_CDMA
Return PHONE_TYPE_SIP
Example:
Dim sim As SimCard
Dim torna As String
torna = sim.GetPhoneType
GetSimCountryIso As String
Returns the ISO country code equivalent for the SIM provider's country code and returns its content as a string.
Example:
Dim sim As SimCard
Dim text As String
text = sim.GetSimCountryIso
GetSimOperator As String
Returns the MCC+MNC (mobile country code + mobile network code) of the provider of the SIM. and returns its content as a string.
Example:
Dim sim As SimCard
Dim text As String
text = sim.GetSimOperator
GetSimOperatorName As String
Returns the Service Provider Name (SPN) and returns its content as a string.
Example:
Dim sim As SimCard
Dim text As String
text = sim.GetSimOperatorName
GetSimSerialNumber1 As String
Returns the serial number of the SIM, if applicable and returns its content as a string.
Example:
Dim sim As SimCard
Dim text As String
text = sim.GetSimSerialNumber
GetSimSerialNumber2 As String
Returns the serial number of the SIM-2, if applicable and returns its content as a string.
Example:
Note: Utilize sim.IsDualSIM
Dim sim As SimCard
Dim text As String
text = sim.GetSimSerialNumber
GetSimState As String
Returns a constant indicating the state of the device SIM card.
Return SIM_STATE_UNKNOWN
Return SIM_STATE_ABSENT - SIM card state: no SIM card is available in the device
Return SIM_STATE_PIN_REQUIRED - SIM card state: Locked: requires the user's SIM PIN to unlock
Return SIM_STATE_PUK_REQUIRED - SIM card state: Locked: requires the user's SIM PUK to unlock
Return SIM_STATE_NETWORK_LOCKED - SIM card state: Locked: requries a network PIN to unlock
Return SIM_STATE_READY
Example:
Dim sim As SimCard
Dim torna As String
torna = sim.GetSimState
GetSubscriberId As String
Returns the unique subscriber ID, for example, the IMSI for a GSM phone and returns its content as a string.
Example:
Dim sim As SimCard
Dim text As String
text = sim.GetSubscriberId
GetVoiceMailAlphaTag As String
Retrieves the alphabetic identifier associated with the voice mail number and returns its content as a string.
Example:
Dim sim As SimCard
Dim text As String
text = sim.GetVoiceMailAlphaTag
GetVoiceMailNumber As String
Returns the voice mail number and returns its content as a string.
Example:
Dim sim As SimCard
Dim text As String
text = sim.GetVoiceMailNumber
HasIccCard As Boolean
Returns true if a ICC card is present.
Example:
Dim sim As SimCard
Dim vero As boolean
vero = sim.HasIccCard
Imei As String
Reads IMEI for GSM and the MEDI or ESN for CDMA phones and returns its content as a string.
Example:
Dim sim As SimCard
Dim text As String
text = sim.Imei
Imei2 As String
Reads IMEI2 for GSM and the MEDI or ESN for CDMA phones and returns its content as a string.
Note: Utilize sim.IsDualSIM and IsSIM2Ready
Example:
Dim sim As SimCard
Dim text As String
text = sim.Imei2
Initialize
Initialize -
Documentation:.
Example:
Dim sim As SimCard
sim.Initialize()
IsDualSIM As Boolean
Check if is DUAL SIM.
Example:
Dim sim As SimCard
Dim vero As boolean
vero = sim.IsDualSIM
IsNetworkRoaming As Boolean
Returns true if the device is considered roaming on the current network, for GSM purposes.
Example:
Dim sim As SimCard
Dim vero As boolean
vero = sim.IsNetworkRoaming

Top