public class MobileManager extends Object
| Modifier and Type | Method and Description | 
|---|---|
| void | changePinCode(String pinCode)Changes an existing PIN code to a new PIN code. | 
| void | disablePinLock(String pinCode)Disables the PIN code locking of the SIM card. | 
| void | enablePinLock(String pinCode)Enables the PIN code locking of the SIM card. | 
| String | getImei()Gets the IMEI (International Mobile Equipment Identity). | 
| static MobileManager | getManager()Gets the unique  MobileManagerinstance. | 
| String | getMsisdn()Gets the current MSISDN (Mobile Station ISDN Number). | 
| int | getRssi()Gets the RSSI (Received Signal Strength Indication) of the modem. | 
| String | getSpn()Gets the SPN (Service Provider Name) of the mobile network. | 
| boolean | isPinLockEnabled()Checks whether the PIN lock is enabled or not. | 
| void | setPinCode(String pinCode)Sets the PIN code to be used for unlocking the SIM card. | 
public void changePinCode(String pinCode) throws IOException
setPinCode(String) or
 enablePinLock(String)).pinCode - the new PIN code.IOException - if the PIN code could not be changed.public void disablePinLock(String pinCode) throws IOException
setPinCode(String) or
 enablePinLock(String)).pinCode - the SIM PIN.IOException - if the "lock SIM card" facility can not be disabled (wrong PIN, facility already disabled, other
             errors).public void enablePinLock(String pinCode) throws IOException
pinCode - the PIN code.IOException - if the "lock SIM card" facility can not be enabled (wrong PIN, facility already enabled, other
             errors).public String getImei() throws IOException
IOException - if the IMEI could not be retrieved.public static MobileManager getManager()
MobileManager instance.public String getMsisdn() throws IOException
IOException - if the MSISDN could not be retrieved.public int getRssi()
            throws IOException
IOException - if the RSSI could not be retrieved.public String getSpn() throws IOException
IOException - if the SPN could not be retrieved.public boolean isPinLockEnabled()
                         throws IOException
true if the PIN lock is enabled, false otherwise.IOException - if the lock status could not be retrieved.public void setPinCode(String pinCode) throws IOException
pinCode - the PIN code.IOException - if the PIN could not be set.