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.......


