Skip to content Skip to sidebar Skip to footer

How To Detect Tower Changes In Android?

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

Solution 1:

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)

Solution 2:

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.

Post a Comment for "How To Detect Tower Changes In Android?"