I have an app that collects neighbor cell information (CID and RSSI).
It works fine in 2G.  When switching to 3G, the getCid() and getRssi()
throw a NumberFormatException

List<NeighboringCellInfo>  neighCell = null;
neighCell = telManager.getNeighboringCellInfo();
for (i = 0; i < numNeigh; i++) {
        try {
                NeighboringCellInfo thisCell = neighCell.get(i);
                int thisNeighCID = thisCell.getCid();
                int thisNeighRSSI = thisCell.getRssi();

        } catch (NumberFormatException e) {
                e.printStackTrace();
                NeighboringCellInfo thisCell = neighCell.get(i);
                cellIdOutput = String.format("%s", neighCell.toString
());
}

Using toString() (as above in last line of the catch) generates the
following string...

[[6c at 0], [74 at 0]]

This NeighboringCellInfo list identifies it's size as 2, which looks
right from the string output.

Does this string contain 3G cell ID such as scrambling code (in hex)?
Anyone know how to decode it?

Thanks in advance for the help.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to