Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 132
Registered: ‎11-20-2009
My Device: Not Specified

cellLAC for CDMA?

I am currently grabbing some latitude and longitude coordinates from googlemaps, however with a lot of testing this seems to only work with GSM/GPRS networks using the cellID and cellLAC. (Using techniques here http://www.anddev.org/poor_mans_gps_-_celltowerid_-_location_area_code_-lookup-t257.html)

 

         case RadioInfo.NETWORK_GPRS:
            cellID = GPRSInfo.getCellInfo().getCellId();
            cellLAC = GPRSInfo.getCellInfo().getLAC();
            break;
         case RadioInfo.NETWORK_CDMA:
               cellID = CDMAInfo.getCellInfo().getBID();
                    cellLAC = CDMAInfo.getCellInfo().getNID();
                    break;
            case RadioInfo.NETWORK_UMTS:
                    cellID = GPRSInfo.getCellInfo().getCellId();
                    cellLAC = GPRSInfo.getCellInfo().getLAC();
                    break;
            default:  
                    cellID = GPRSInfo.getCellInfo().getCellId();
                    cellLAC = GPRSInfo.getCellInfo().getLAC();

 

My question is, for the CDMA networks, what do we use for cellID and cellLAC to make it work? Any help would be greatly appreciated

Developer
Posts: 132
Registered: ‎11-20-2009
My Device: Not Specified

Re: cellLAC for CDMA?

anyone?