|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.device.api.system.RadioInfo
Provides access to information about the status of the radio.
| Field Summary | ||
static int |
BAND_CDMA_1900
Represents the 1900 MHz CDMA band. |
|
static int |
BAND_CDMA_800
Represents the 800 MHz CDMA band. |
|
static int |
BAND_DATATAC_800
Deprecated. DataTAC is no longer supported. |
|
static int |
BAND_GSM_1800
Represents the 1800 MHz GSM band. |
|
static int |
BAND_GSM_1900
Represents the 1900 MHz GSM band. |
|
static int |
BAND_GSM_850
Represents the 850 MHz GSM band. |
|
static int |
BAND_GSM_900
Represents the 900 MHz GSM band. |
|
static int |
BAND_IDEN_800
Represents the 800 MHz iDEN band. |
|
static int |
BAND_MOBITEX_900
Deprecated. Mobitex is no longer supported. |
|
static int |
LEVEL_NO_COVERAGE
Radio has no coverage. |
|
static int |
NETWORK_802_11
802.11 network. |
|
static int |
NETWORK_CDMA
CDMA network. |
|
static int |
NETWORK_DATATAC
Deprecated. DataTAC is no longer supported. |
|
static int |
NETWORK_GPRS
GPRS network. |
|
static int |
NETWORK_IDEN
iDEN network. |
|
static int |
NETWORK_MOBITEX
Deprecated. Mobitex is no longer supported. |
|
static int |
NETWORK_NONE
No radio network supported. |
|
static int |
NETWORK_SERVICE_DATA
Network is providing data service. |
|
static int |
NETWORK_SERVICE_DIRECT_CONNECT
Network is providing direct connect service. |
|
static int |
NETWORK_SERVICE_E911_CALLBACK_MODE
Device is in E911 callback mode. |
|
static int |
NETWORK_SERVICE_EDGE
Device is in EDGE coverage. |
|
static int |
NETWORK_SERVICE_EMERGENCY_ONLY
Network is providing emergency service only. |
|
static int |
NETWORK_SERVICE_EVDO
Device is in EV-DO coverage with 1X. |
|
static int |
NETWORK_SERVICE_EVDO_ONLY
Device is in EV-DO coverage only, No 1X |
|
static int |
NETWORK_SERVICE_IN_CITY_ZONE
Device is in the 'city' zone. |
|
static int |
NETWORK_SERVICE_IN_HOME_ZONE
Device is in the 'home' zone. |
|
static int |
NETWORK_SERVICE_MODEM_MODE_ENABLED
Device is in modem (only) mode. |
|
static int |
NETWORK_SERVICE_ROAMING
Device is roaming. |
|
static int |
NETWORK_SERVICE_ROAMING_OFF_CAMPUS
Device is roaming onto another network campus. |
|
static int |
NETWORK_SERVICE_SUPPRESS_ROAMING
The roaming indicator should be suppressed. |
|
static int |
NETWORK_SERVICE_UMTS
Device is in UMTS coverage. |
|
static int |
NETWORK_SERVICE_VOICE
Network is providing voice service. |
|
static int |
NETWORK_UMTS
UMTS network |
|
static int |
STATE_LOWBATT
Radio is on but cannot function because of low battery. |
|
static int |
STATE_OFF
Radio is off. |
|
static int |
STATE_ON
Radio is on. |
|
static int |
STATE_RELOAD_REQUIRED
Radio off and requires reloading. |
|
static int |
STATE_SERVICE_REQUIRED
Radio is off and requires service. |
|
static int |
STATE_TURNING_OFF
Radio is in process of turning off. |
|
static int |
STATE_TURNING_ON
Radio is in process of turning on. |
|
| Method Summary | ||
static String |
getAccessPointName(int apnId)
Gets the access point name from the given identifier. |
|
static int |
getAccessPointNumber(String name)
Retrieves the access point number for the specified name. |
|
static int |
getAccessPointNumber(String data,
int offset,
int length)
Retrieves the access point number for the specified name. |
|
static int |
getCurrentNetworkIndex()
Retrieves the index of the current network. |
|
static String |
getCurrentNetworkName()
Retrieve the name of the carrier network on which the device is currently registered. |
|
static byte[] |
getIPAddress(int apnId)
Retrieves the IP address for the specified access point name identifier. |
|
static int |
getMCC(int index)
Retrieves Mobile Country Code for this network. |
|
static int |
getMNC(int index)
Retrieves Mobile Network Code for the specified network. |
|
static int |
getNetworkId(int index)
Retrieves the Id of the specified network. |
|
static int |
getNetworkService()
Retrieves currently available network services. |
|
static long |
getNetworkTime(long deviceTime)
Determine the current network time, as calculated using an offset from the current device time. |
|
static int |
getNetworkType()
Retrieves the network type. |
|
static int |
getNumberOfNetworks()
Retrieves the number of available networks. |
|
static long |
getNumberOfPacketsReceived()
Retrieves the number of IP packets received by the radio. |
|
static long |
getNumberOfPacketsSent()
Retrieves the number of IP packets sent by the radio. |
|
static int |
getSignalLevel()
Retrieves current signal strength. |
|
static int |
getState()
Checks the radio state. |
|
static int |
getSupportedBands()
Retrieves the network bands which are supported by the device. |
|
static boolean |
isDataServiceOperational()
Indicates whether the radio can perform data services at this time. |
|
static boolean |
isDataServiceSuspended()
Indicates whether data services are temporarily suspended at the present time. |
|
static boolean |
isPDPContextActive(int apnId)
Indicates if the PDP context for the specified APN is active. |
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int NETWORK_MOBITEX
public static final int NETWORK_DATATAC
public static final int STATE_LOWBATT
public static final int STATE_SERVICE_REQUIRED
public static final int STATE_RELOAD_REQUIRED
public static final int NETWORK_SERVICE_EMERGENCY_ONLY
public static final int NETWORK_SERVICE_VOICE
public static final int NETWORK_SERVICE_DATA
public static final int NETWORK_SERVICE_DIRECT_CONNECT
public static final int NETWORK_SERVICE_SUPPRESS_ROAMING
public static final int NETWORK_SERVICE_ROAMING_OFF_CAMPUS
public static final int NETWORK_SERVICE_IN_HOME_ZONE
public static final int NETWORK_SERVICE_IN_CITY_ZONE
public static final int NETWORK_SERVICE_E911_CALLBACK_MODE
public static final int NETWORK_SERVICE_EVDO
public static final int NETWORK_SERVICE_EVDO_ONLY
public static final int NETWORK_SERVICE_EDGE
public static final int NETWORK_SERVICE_MODEM_MODE_ENABLED
public static final int NETWORK_SERVICE_UMTS
public static final int BAND_MOBITEX_900
public static final int BAND_DATATAC_800
public static final int BAND_GSM_1800
public static final int BAND_GSM_1900
public static final int BAND_CDMA_800
public static final int BAND_CDMA_1900
public static final int BAND_IDEN_800
| Method Detail |
public static int getNetworkType()
NETWORK_GPRS,
NETWORK_UMTS,
NETWORK_CDMA,
NETWORK_IDEN.public static int getState()
STATE_ON if the radio is on.
STATE_OFF if the radio is off or being turned off.
STATE_LOWBATT if the radio is on but the battery is too low
to allow its use.
STATE_SERVICE_REQUIRED if the radio requires service.
STATE_TURNING_OFF if the radio is in the process of being
turned off.
STATE_TURNING_ON if the radio is in the process of being turned on.
public static int getSignalLevel()
LEVEL_NO_COVERAGE if the radio is out of coverage.public static int getNetworkService()
NETWORK_SERVICE_* flags.public static int getSupportedBands()
public static long getNumberOfPacketsSent()
public static long getNumberOfPacketsReceived()
public static int getNumberOfNetworks()
public static int getCurrentNetworkIndex()
getNumberOfNetworks() - 1.public static int getNetworkId(int index)
index - The network index, from 0 to getNumberOfNetworks() - 1.public static int getMNC(int index)
index - The network index, from 0 to getNumberOfNetworks() - 1.public static int getMCC(int index)
index - The network index, from 0 to getNumberOfNetworks() - 1.public static boolean isPDPContextActive(int apnId)
apnId - The access point name identifier.true if the PDP context for the specified APN is active.public static String getAccessPointName(int apnId) throws RadioException
apnId - The access point name identifier.RadioException - If a radio error occurs.public static int getAccessPointNumber(String name) throws RadioException
name - The access point name.RadioException - If a radio error occurs.public static int getAccessPointNumber(String data, int offset, int length) throws RadioException
data - The String containing the access point name.offset - The start offset of the access point name.length - The length of the access point name.RadioException - If a radio error occurs.public static byte[] getIPAddress(int apnId)
apnId - The access point name identifier.public static long getNetworkTime(long deviceTime)
deviceTime - current time in millisecondspublic static boolean isDataServiceOperational()
public static boolean isDataServiceSuspended()
public static String getCurrentNetworkName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2006 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.