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.032 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 3 guests