| java.lang.Object | |
| ↳ | android.telephony.NeighboringCellInfo | 
Represents the neighboring cell information, including Received Signal Strength and Cell ID location.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | UNKNOWN_CID | Cell location is not available | |||||||||
| int | UNKNOWN_RSSI | Signal strength is not available | |||||||||
| 
  [Expand]
   Inherited Constants  | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
   From interface
android.os.Parcelable
 | |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| CREATOR | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
      This constructor was deprecated
      in API level 5.
    by  
  
  NeighboringCellInfo(int, String, int)
 | |||||||||||
      This constructor was deprecated
      in API level 5.
    by  
  
  NeighboringCellInfo(int, String, int)
 | |||||||||||
Initialize the object from rssi, location string, and radioType
 radioType is one of following
  
  
  TelephonyManager.NETWORK_TYPE_GPRS,
 TelephonyManager.NETWORK_TYPE_EDGE,
 TelephonyManager.NETWORK_TYPE_UMTS,
 TelephonyManager.NETWORK_TYPE_HSDPA,
 TelephonyManager.NETWORK_TYPE_HSUPA,
 and TelephonyManager.NETWORK_TYPE_HSPA. | |||||||||||
Initialize the object from a parcel. 
  
   | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Describe the kinds of special objects contained in this Parcelable's
 marshalled representation. 
  
   | |||||||||||
      This method was deprecated
      in API level 5.
    cid value passed as in location parameter passed to constructor
               
  
  NeighboringCellInfo(int, String, int)
 | |||||||||||
      This method was deprecated
      in API level 5.
    initial rssi value passed as parameter to constructor
               
  
  NeighboringCellInfo(int, String, int)
 | |||||||||||
Returns a string containing a concise, human-readable description of this
 object. 
  
   | |||||||||||
Flatten this object in to a Parcel. 
  
   | |||||||||||
| 
  [Expand]
   Inherited Methods  | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
   
From class
  java.lang.Object
 | |||||||||||
   
From interface
  android.os.Parcelable
 | |||||||||||
Cell location is not available
Signal strength is not available
      This constructor was deprecated
      in API level 5.
    by NeighboringCellInfo(int, String, int)
  
Empty constructor. Initializes the RSSI and CID. NeighboringCellInfo is one time shot for the neighboring cells based on the radio network type at that moment. Its constructor needs radio network type.
      This constructor was deprecated
      in API level 5.
    by NeighboringCellInfo(int, String, int)
  
Initialize the object from rssi and cid. NeighboringCellInfo is one time shot for the neighboring cells based on the radio network type at that moment. Its constructor needs radio network type.
Initialize the object from rssi, location string, and radioType
 radioType is one of following
 TelephonyManager.NETWORK_TYPE_GPRS,
 TelephonyManager.NETWORK_TYPE_EDGE,
 TelephonyManager.NETWORK_TYPE_UMTS,
 TelephonyManager.NETWORK_TYPE_HSDPA,
 TelephonyManager.NETWORK_TYPE_HSUPA,
 and TelephonyManager.NETWORK_TYPE_HSPA.
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
TelephonyManager.NETWORK_TYPE_UNKNOWN
 means that the location information is unavailable.
 Return TelephonyManager.NETWORK_TYPE_GPRS or
 TelephonyManager.NETWORK_TYPE_EDGE
 means that Neighboring Cell information is stored for GSM network, in
 which NeighboringCellInfo.getLac and
 NeighboringCellInfo.getCid should be
 called to access location.
 Return TelephonyManager.NETWORK_TYPE_UMTS,
 TelephonyManager.NETWORK_TYPE_HSDPA,
 TelephonyManager.NETWORK_TYPE_HSUPA,
 or TelephonyManager.NETWORK_TYPE_HSPA
 means that Neighboring Cell information is stored for UMTS network, in
 which NeighboringCellInfo.getPsc
 should be called to access location.
      This method was deprecated
      in API level 5.
    cid value passed as in location parameter passed to constructor
              NeighboringCellInfo(int, String, int)
  
Set the cell id. NeighboringCellInfo is a one time shot for the neighboring cells based on the radio network type at that moment. It shouldn't be changed after creation.
      This method was deprecated
      in API level 5.
    initial rssi value passed as parameter to constructor
              NeighboringCellInfo(int, String, int)
  
Set the signal strength of the cell. NeighboringCellInfo is a one time shot for the neighboring cells based on the radio network type at that moment. It shouldn't be changed after creation.
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
 toString method
 if you intend implementing your own toString method.
Flatten this object in to a Parcel.
| dest | The Parcel in which the object should be written. | 
|---|---|
| flags | Additional flags about how the object should be written.
 May be 0 or PARCELABLE_WRITE_RETURN_VALUE.
 |