|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.system.GPRSInfo
public final class GPRSInfo
Contains General Packet Radio Service (GPRS) radio information.
Nested Class Summary | ||
---|---|---|
static class |
GPRSInfo.GPRSCellInfo
Encapsulates information for a General Packet Radio Service (GPRS) cell. |
Field Summary | ||
---|---|---|
static int |
GPRS_STATE_IDLE
Represents the GPRS "idle" radio state. |
|
static int |
GPRS_STATE_READY
Represents the GPRS "ready" radio state. |
|
static int |
GPRS_STATE_STANDBY
Represents the GPRS "standby" radio state. |
Method Summary | ||
---|---|---|
static GPRSInfo.GPRSCellInfo |
getCellInfo()
Retrieves information on the current cell. |
|
static int |
getGPRSState()
Retrieves the current GPRS state. |
|
static int |
getHomeMCC()
Retrieves Mobile Country Code for the home network. |
|
static int |
getHomeMNC()
Retrieves Mobile Network Code for the home network. |
|
static byte[] |
getIMEI()
Retrieves the International Mobile Equipment Identity (IMEI) of the device. |
|
static byte[] |
getIMEISV()
Retrieves the International Mobile Equipment Identity and Software Version (IMEISV) of the device. |
|
static String |
getRegistrationAddress()
Deprecated. This method always returns null. |
|
static String |
getZoneName()
Retrieves the zone name. |
|
static String |
imeiToString(byte[] imei)
Converts the International Mobile Equipment Identity (IMEI) value to a string. |
|
static String |
imeiToString(byte[] imei,
boolean addPeriods)
Converts the International Mobile Equipment Identity (IMEI) value to a string. |
|
static String |
imeisvToString(byte[] imeisv,
boolean addPeriods)
Converts the International Mobile Equipment Identity (with) Software Version (IMEISV) value to a string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int GPRS_STATE_IDLE
In this state, the radio is detached from the network.
public static final int GPRS_STATE_STANDBY
In this state, the network must page the radio to prepare it to receive a downlink packet.
public static final int GPRS_STATE_READY
In this state, the radio is attached to the network, and can send and receive packets.
Method Detail |
---|
public static byte[] getIMEI()
public static byte[] getIMEISV()
public static String imeiToString(byte[] imei)
imei
- IMEI value.
public static int getHomeMCC()
public static int getHomeMNC()
public static String imeiToString(byte[] imei, boolean addPeriods)
imei
- IMEI value.addPeriods
- If true, the id will be delimited by periods.
public static String imeisvToString(byte[] imeisv, boolean addPeriods)
imeisv
- IMEISV value.addPeriods
- If true, the id will be delimited by periods.
public static int getGPRSState()
GPRSInfo.GPRS_STATE_IDLE
,
GPRSInfo.GPRS_STATE_STANDBY
, or
GPRSInfo.GPRS_STATE_READY
.public static String getRegistrationAddress()
public static String getZoneName()
public static GPRSInfo.GPRSCellInfo getCellInfo()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal