How to detect tower changes in Android?

后端 未结 2 455
迷失自我
迷失自我 2020-12-16 23:58

Just wanted to know whether it\'s possible to get cell tower changes in Android?

I have seen an event called onCellLocationChanged in PhoneStateL

相关标签:
2条回答
  • 2020-12-17 00:18

    This is the correct method. It is always called if you are in a new cell. See the documentation here:

    http://developer.android.com/reference/android/telephony/PhoneStateListener.html#onCellLocationChanged(android.telephony.CellLocation)

    0 讨论(0)
  • 2020-12-17 00:27

    This is not true. onCellLocationChanges from PhoneStateListener is ONLY called when the phone is NOT sleeping. You have to wake up the phone (force a wakelock) - to get cell info.

    0 讨论(0)
提交回复
热议问题