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:
http://developer.android.com/reference/android/telephony/PhoneStateListener.html#onCellLocationChanged(android.telephony.CellLocation)
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With