Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Retrieving list of neighboring cells

Retrieving list of neighboring cells

Put your problem here if it does not fit any of the other categories.

Retrieving list of neighboring cells

Postby Talnor » Thu Nov 05, 2009 7:53 am

Hi everyone!

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:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2. TelephonyManager manager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
  3.  
  4. ArrayList<NeighboringCellInfo> list = (ArrayList<NeighboringCellInfo>)manager.getNeighboringCellInfo();
  5.  
  6.  
Parsed in 0.011 seconds, using GeSHi 1.0.8.4


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
Talnor
Freshman
Freshman
 
Posts: 2
Joined: Thu Nov 05, 2009 7:41 am

Top

Postby savignien » Thu Nov 05, 2009 8:32 am

For what it is worth, I have the same problem.
It seems to me that the emulator doesn't emulate the neighboring cells.
Hopefully it works on a real device, but still it's a pain for devs...
savignien
Freshman
Freshman
 
Posts: 4
Joined: Thu Oct 29, 2009 11:04 am

Postby Talnor » Thu Nov 05, 2009 8:35 am

Well, unfortunately it's not working on a real device too. That's what my problem is... :cry:
Talnor
Freshman
Freshman
 
Posts: 2
Joined: Thu Nov 05, 2009 7:41 am

Postby nr1 » Fri Jan 01, 2010 10:40 pm

Hi,

one question about the "NeighboringCellInfo".

Is there a way to implement a listener that notifys me if the neighbouring cells change (cid, lac, rssi)?
nr1
Junior Developer
Junior Developer
 
Posts: 24
Joined: Tue Aug 11, 2009 6:27 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 8 guests