net.rim.device.api.system
Class GPRSInfo

java.lang.Object
  |
  +--net.rim.device.api.system.GPRSInfo

public final class GPRSInfo
extends Object

Contains General Packet Radio Service (GPRS) radio information.

Since:
JDE 3.6.0

Inner Class Summary
static class GPRSInfo.GPRSCellInfo
          Contains General Packet Radio Service (GPRS) cell information.
 
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()
          Returns information on the current cell.
static int getGPRSState()
          Returns the GPRS state.
static byte[] getIMEI()
          Returns the International Mobile Equipment Identity (IMEI) of the device.
static String getRegistrationAddress()
          Returns the registration address.
static String getZoneName()
          Returns the zone name.
static String imeiToString(byte[] imei)
          Converts the International Mobile Equipment Identity (IMEI) value to a string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GPRS_STATE_IDLE

public static final int GPRS_STATE_IDLE
Represents the GPRS "idle" radio state.
Since:
JDE 3.6.0

GPRS_STATE_STANDBY

public static final int GPRS_STATE_STANDBY
Represents the GPRS "standby" radio state.
Since:
JDE 3.6.0

GPRS_STATE_READY

public static final int GPRS_STATE_READY
Represents the GPRS "ready" radio state.
Since:
JDE 3.6.0
Method Detail

getIMEI

public static byte[] getIMEI()
Returns the International Mobile Equipment Identity (IMEI) of the device.

Returns:
The IMEI of the device in BCD format.
Since:
JDE 3.6.0

imeiToString

public static String imeiToString(byte[] imei)
Converts the International Mobile Equipment Identity (IMEI) value to a string.

Parameters:
imei - The IMEI value.
Returns:
A String representation of the specified IMEI.
Since:
JDE 3.7.0

getGPRSState

public static int getGPRSState()
Returns the GPRS state.

One of GPRS_STATE_IDLE, GPRS_STATE_STANDBY, GPRS_STATE_READY.

Returns:
An integer representing the GPRS state.
Since:
JDE 3.6.0

getRegistrationAddress

public static String getRegistrationAddress()
Returns the registration address.

Returns:
A string representing the registration address.
Since:
JDE 3.6.0

getZoneName

public static String getZoneName()
Returns the zone name.

Returns:
A string representing the zone name.
Since:
JDE 3.6.0

getCellInfo

public static GPRSInfo.GPRSCellInfo getCellInfo()
Returns information on the current cell.

Returns:
The GPRS cell info.
Since:
JDE 3.6.0


Copyright 1999-2002 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.