11-13-2013 05:54 AM
I am currently testing an app that at some point in time uses the cellId to which the device is attached.. the problem is that I'm not able to get this value in any way.
My target OS: BB10.2 -> Android jellybean (API 17)
My Device: Z10
I have checked the hardware features which are not supported to see if the classes I use are OK ( "NeighbouringCellInfo" is not supported but I suppose this should be treated different than the current cell, am I right? )
The two methods I know of with which to retrieve the cell ID are both blocked by returning null values. *mPhoneManager is the TelephonyManager instance retrieved from the system.
GsmCellLocation mCurrentCell = (GsmCellLocation) mPhoneManager.getCellLocation();
List<CellInfo> cellInfoList = mPhoneManager.getAllCellInfo();
both 'mCurrentCell' and 'cellInfoList' are always returning null.
- I have the app permissions in the manifest.
- I have enbled 'location services' on my device (Not sure if this is necessary...)
has anyone run into this problem?? or has anybody been able to retrieve the cellID in some other way?
My only fear is that in the end this feature is not supported.... but at least in the developer site, it doesn't seems that way
thanks for any advice or suggestion anyone can give!
Solved! Go to Solution.
11-19-2013 03:19 PM - edited 11-19-2013 03:20 PM
This is not supported.
Maybe not in the most intuitive spot for this, but it's documented here:
(edit: Er, I thougth this was on the unsupported page. It should be. I know for a fact it's not supported. Sorry).
11-19-2013 03:35 PM
And since there appears to be an exposed API for this for BB10 native, I will look into adding this to our list of supported APIs for the future (no commitment guarantee, but it won't be 10.2.1 )
11-20-2013 04:14 AM
thanks bbenninger for the info!!!
I had been trough the unsupported API's page, and since in the telephony manager section it's only 'NeighbouringCellInfo' that is listed, I was hoping that the current CellInfo was available.
I guess native is the way to go for now!!