Just wanted to know whether it's possible to get cell tower changes in Android?
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:
Glenn
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.
来源:https://stackoverflow.com/questions/5715427/how-to-detect-tower-changes-in-android