getCid() is in hex format. I do a

thisCell.getCid() & 0xffff

to get the decimal format. Now the cdma end of it is a big 'ol
mystery.

Ken

On Oct 20, 11:42 am, Jimmy <[email protected]> wrote:
> The MNC and MCC can be parsed from the serving cell information (it
> works in 2G and seems to work in 3G as well) from the
> telManager.getNetworkOperator() and the neighbor LACs can be parsed
> from NeighboringCellInfo string.  So most of the info is there.  It's
> just the 3G neighbor info that is missing.  Let me know if you want
> the breakdown on these parameters and I'll send sample code.
>
> Maybe the 3G cell info is simply not parsed yet in the telephony stack
> correctly to feed the API.  I was hoping this was understood in 1.6
> where there was new support forCDMA. So if anyone understands the 3G
> neighbor cells, any help would be greatly appreciated.
>
> On Sep 30, 2:59 am, "Will 'Varfar'" <[email protected]> wrote:
>
>
>
> > there's quite a history of people asking this exact question.
>
> > Not a single answer yet though.
>
> > Quite what you can do with a CID without the LAC and MNC etc is a bit
> > unclear anyway.
>
> > And these questions, they keep disappearing from the search results.
> > Search this group for GetNeighboringCellInfo().  It doesn't show 
> > mehttp://groups.google.com/group/android-developers/browse_thread/threa...
> > for example.
>
> > Very fustrating.  Sorry I don't know how to help you Jimmy.
>
> > On Sep 11, 9:42 pm, Jimmy <[email protected]> wrote:
>
> > > I have an app that collects neighbor cell information (CID and RSSI).
> > > It works fine in 2G.  When switching to3G, 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 contain3Gcell 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