public class DeviceInfoCtrl
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BUNDLE_ERROR_CODE |
static java.lang.String |
BUNDLE_ERROR_MSG |
static int |
RESULT_CODE_ERROR |
static int |
RESULT_CODE_SUCCESS |
| Constructor and Description |
|---|
DeviceInfoCtrl(android.content.Context context)
Instantiates a new General ctrl.
|
| Modifier and Type | Method and Description |
|---|---|
android.os.Bundle |
getDeviceBuildNumber()
Get Device Build Number
|
android.os.Bundle |
getDeviceSerialNumber()
Get Device Serial Number
|
android.os.Bundle |
getIMEI()
Get IMEI
|
android.os.Bundle |
getIMEI(int simSlot)
Get IMEI with Sim Slot
|
android.os.Bundle |
getIMSI()
Get IMSI
|
android.os.Bundle |
getIMSI(int simSlot)
Get IMSI with Sim Slot
|
android.os.Bundle |
getNetworkInformation(java.lang.String iName)
Get Network Information with interfaceName
|
public static final java.lang.String BUNDLE_ERROR_CODE
public static final java.lang.String BUNDLE_ERROR_MSG
public static final int RESULT_CODE_ERROR
public static final int RESULT_CODE_SUCCESS
public DeviceInfoCtrl(android.content.Context context)
context - the contextpublic android.os.Bundle getDeviceSerialNumber()
public android.os.Bundle getDeviceBuildNumber()
public android.os.Bundle getIMEI()
public android.os.Bundle getIMEI(int simSlot)
simSlot - Sim Slot Number (int)
ex:
0 (sim1)
or
1 (sim2)public android.os.Bundle getIMSI()
public android.os.Bundle getIMSI(int simSlot)
simSlot - Sim Slot Number (int)
ex:
0 (sim1)
or
1 (sim2)public android.os.Bundle getNetworkInformation(java.lang.String iName)
iName - interfaceName (String)
ex:
eth0 or wlan0 or empty for current interface