I need to retrieve a list of all neighboring cells my mobile phone is in range of. Therefore I'm trying to use the getNeighboringCellInfo() method of the TelephonyManager:
Using java Syntax Highlighting
TelephonyManager manager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
ArrayList<NeighboringCellInfo> list = (ArrayList<NeighboringCellInfo>)manager.getNeighboringCellInfo();
Parsed in 0.033 seconds, using GeSHi
Unfortunately the returning list always is empty.
So my question is: Do I have to initialize / do anything else before I can get the list or is there anything I'm doing wrong?
Hope someone can help me to solve this issue.
PS: Using SDK 1.5 rev.3 and Eclipse ADT 0.9.4