GPS problem

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

GPS problem

Postby ashish » Sat Mar 21, 2009 6:30 am

in my application to use gps i am using below code.....

Location loc;
LocationManager lm = (LocationManager)getSystemService(LOCATION_SERVICE);
loc = lm.getLastKnownLocation("network"); //OR getLastKnownLocation("gps");


but it is not working...........

whether it is necessary to call lm.RequestLocationUpdate() method.

can any one help me.......
ashish
Experienced Developer
Experienced Developer
 
Posts: 62
Joined: Fri Feb 20, 2009 8:09 am

Top

Re: GPS problem

Postby sarangkulkarni17 » Mon Mar 23, 2009 6:04 am

ashish wrote:in my application to use gps i am using below code.....

Location loc;
LocationManager lm = (LocationManager)getSystemService(LOCATION_SERVICE);
loc = lm.getLastKnownLocation("network"); //OR getLastKnownLocation("gps");


but it is not working...........

whether it is necessary to call lm.RequestLocationUpdate() method.

can any one help me.......


Hello everyone,
please download tutorial on GPS
Attachments
WhereIAm.zip
(32.04 KiB) Downloaded 59 times
sarangkulkarni17
Developer
Developer
 
Posts: 29
Joined: Fri Feb 13, 2009 10:00 am
Location: Pune

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 3 guests