I'm trying to get the following data:
- Base station: CellID and RSS (recognition which one is the base station)
- For all neigbouring stations: CellID and RSS
There are various APIs and it looks like i'd have to use different APIs telephonyManager and PhoneStateListener. I'm a littlebit confused, as I think this should be available in one interface. Also I think that it should be possible to poll the CellID of the current Base Station instead of having to listen to State Changes to determine int, since the Neighbouring Cell Stations cal also be polled from the telephonyManager.
Can you tell me how I can get the data specified above?
New skool-way: API 17 much nicer and cleaner, but still too new.
The old API doesn't provide a very satisfying solution. But here's the old-skool way:
Don't forget to set all the necessary permissions The problem with this solution is, that I don't get any neighboring cell info, eventhough i setup:
uses-permission android:name="android.permission.ACCESS_COARSE_UPDATES"
(note that i'm using a Samsung phone and it's a known issue that Samsung phones don't support the listing of neighboring cells)