如何检测机器人塔的变化? [英] How to detect tower changes in Android?
问题描述
只是想知道是否有可能获得在Android的手机信号塔的变化?
Just wanted to know whether it's possible to get cell tower changes in Android?
我已经看到了 PhoneStateListener
名为 onCellLocationChanged
的事件。
I have seen an event called onCellLocationChanged
in PhoneStateListener
.
我可以用这个来检测手机信号塔的变化?
Can I use this to detect cell tower changes ?
推荐答案
这是正确的方法。如果你是在一个新的电池它总是被调用。看到这里的文档:
This is the correct method. It is always called if you are in a new cell. See the documentation here:
<一个href="http://developer.android.com/reference/android/telephony/PhoneStateListener.html#onCellLocationChanged(android.telephony.CellLocation">http://developer.android.com/reference/android/telephony/PhoneStateListener.html#onCellLocationChanged(android.telephony.CellLocation)
这篇关于如何检测机器人塔的变化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!