public class CellularDeviceInfo extends Object
Modifier and Type | Field and Description |
---|---|
static int |
SIMCARD_STATUS_INSERTED |
static int |
SIMCARD_STATUS_REMOVED |
static int |
SIMCARD_STATUS_UNKNOWN |
Modifier | Constructor and Description |
---|---|
protected |
CellularDeviceInfo(int id) |
Modifier and Type | Method and Description |
---|---|
CellInfo |
getCellInfo()
Get current celluar station information
|
AccessPoint |
getCurrentAPNSetting()
Get current APN setting
|
String |
getICCID() |
String |
getIMEI() |
String |
getIMSI() |
NetworkInfo |
getNetworkInfo()
Get current celluar network information
|
int |
getNetworkSignalLevel()
Get cellular networking signal level
|
int |
getSIMCardStatus()
Get sim card status
|
static CellularDeviceInfo[] |
listCellularDevices()
List all installed cellular devices in the system.
|
void |
resetDefaultAPNSetting()
Reset dfault APN for current cellular device
|
void |
setAPN(AccessPoint apn)
Set APN for current cellular device
|
public static final int SIMCARD_STATUS_UNKNOWN
public static final int SIMCARD_STATUS_INSERTED
public static final int SIMCARD_STATUS_REMOVED
protected CellularDeviceInfo(int id) throws IOException
IOException
public void setAPN(AccessPoint apn) throws IOException
apn
- the APN to be set for next time attaching to celluar networkIOException
AccessPoint
public void resetDefaultAPNSetting() throws IOException
IOException
AccessPoint
public AccessPoint getCurrentAPNSetting() throws IOException
IOException
AccessPoint
public String getIMSI() throws IOException
IOException
public String getIMEI() throws IOException
IOException
public String getICCID() throws IOException
IOException
public int getNetworkSignalLevel() throws IOException
IOException
public NetworkInfo getNetworkInfo() throws IOException
IOException
NetworkInfo
public CellInfo getCellInfo() throws IOException
IOException
CellInfo
public int getSIMCardStatus() throws IOException
CellularDeviceInfo.SIMCARD_STATUS_INSERTED Simcard exists
CellularDeviceInfo.SIMCARD_STATUS_REMOVED Simcard is not inserted
IOException
public static CellularDeviceInfo[] listCellularDevices()