How to detect tower changes in Android?

后端 未结 2 454
迷失自我
迷失自我 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)

提交回复
热议问题