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
[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 - cellid and lac problems, returning -1

cellid and lac problems, returning -1

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

cellid and lac problems, returning -1

Postby sgtmercs » Wed Mar 10, 2010 9:45 am

i cannot get cellid and lac to return a value, they always return -1

please help!

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2.  
  3.  
  4.     private TelephonyManager tm;
  5.  
  6.  
  7.  
  8.         tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
  9.  
  10.         location = (GsmCellLocation) tm.getCellLocation();
  11.  
  12.        
  13.  
  14.                 CellLocation.requestLocationUpdate();        
  15.  
  16.                 cellID = location.getCid();
  17.  
  18.                 lac = location.getLac();
  19.  
  20.  
  21.  
  22.  
Parsed in 0.016 seconds, using GeSHi 1.0.8.4



also:
location.getCid() is returming -1
location.getLac() is returning -1

why?


thanks in advance!
sgtmercs
Freshman
Freshman
 
Posts: 3
Joined: Thu Mar 04, 2010 11:33 pm

Top

Postby sgtmercs » Wed Mar 10, 2010 11:11 pm

new info!

trying to run on a cdma phone.


so the question turns into how to get the cell id and lac on a cdma phone


any ideas?
sgtmercs
Freshman
Freshman
 
Posts: 3
Joined: Thu Mar 04, 2010 11:33 pm

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 5 guests