简体   繁体   English

LTE网络中的Android开发CellID

[英]Android Development CellID in LTE network

I try to implement a function into my Android Application that finds out the cell id of the cell I'm in in a LTE network. 我尝试在我的Android应用程序中实现一个函数,以找出我在LTE网络中所在小区的小区ID。 I recently read a lot about using TelephonyManager.getAllCellInfo() and then filter for CellInfoLte , but also that it's not implemented on every device. 最近,我读了很多有关使用TelephonyManager.getAllCellInfo()的信息 ,然后对CellInfoLte进行了过滤,但是,并不是每个设备都实现了它。 So in my case calling telephonymaganger.getAllCellInfo() returns null . 因此,在我的情况下,调用telephonymaganger.getAllCellInfo()返回null

I'm testing with a Samsung phone, what seems not to be the best case. 我正在用三星手机进行测试,似乎不是最好的情况。 Is there any way to find out the Cell ID or is it just not accessible yet? 有什么方法可以找到Cell ID,或者还不能访问?

I had same problem a few months ago when using getNeigbouringCells() and finally I found this: 几个月前,当我使用getNeigbouringCells()时遇到了同样的问题,最后我发现了这一点:

The cellid implementation varies from mobile device to mobile device since these features are considered to be optional. Cellid实现因移动设备而异,因为这些功能被认为是可选的。 for example: Samsung (all devices): getNeigbouringCells () is not supported at all and always returns an empty list. 例如:三星(所有设备):完全不支持getNeigbouringCells(),并且始终返回一个空列表。

Please take a look at this for more information: http://wiki.opencellid.org/wiki/Android_library 请查看此以获取更多信息: http : //wiki.opencellid.org/wiki/Android_library

You can check it with another phone but not Samsung phones. 您可以用其他手机检查,但不能用三星手机检查。 You can find so many reports about other vendors that have the same problem. 您可以找到许多关于具有相同问题的其他供应商的报告。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM