Get Cell ID and LAC in CDMA BlackBerry devices (OS5 and greater)
Asked Answered
C

2

26

I am stuck on how to get CellID and LAC in CDMA BlackBerry devices supporting OS 5 and greater. I have to get Latitude and Longitude without using GPS. So, i have implemented the solution for GPRS devices, but for CDMA devices i am unable to map CellID and LAC.

I did read many posts on this forum and others saying that CDMA Info provided BID = CellID and NID = LAC, but it never worked at all, and I also tried different combinations for LAC such as using SID as LAC, but it also didn't work.

How can I get Cell ID on OS 5.0+ BlackBerry devices?

Caracal answered 14/3, 2013 at 11:53 Comment(0)
A
1

Have you tried this?

int MCC = RadioInfo.getMCC(RadioInfo.getCurrentNetworkIndex());
int MNC = RadioInfo.getMNC(RadioInfo.getCurrentNetworkIndex());
int LAC = GPRSInfo.getCellInfo().getLAC();
int CELLID = GPRSInfo.getCellInfo().getCellId();
Abbate answered 10/9, 2013 at 18:12 Comment(0)
Q
2

Use getCellInfo() to get both LAC & CellId. Just call the respective methods:

int LAC = GPRSInfo.getCellInfo().getLAC();
int CELLID = GPRSInfo.getCellInfo().getCellId();
Quadrivalent answered 17/11, 2014 at 12:56 Comment(1)
@Author please select the right a answer and give us upvotes :PQuadrivalent
A
1

Have you tried this?

int MCC = RadioInfo.getMCC(RadioInfo.getCurrentNetworkIndex());
int MNC = RadioInfo.getMNC(RadioInfo.getCurrentNetworkIndex());
int LAC = GPRSInfo.getCellInfo().getLAC();
int CELLID = GPRSInfo.getCellInfo().getCellId();
Abbate answered 10/9, 2013 at 18:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.