1

How to get constant GPS location

view story
linux-howto

http://stackoverflow.com – I have following code: LocationManager mlocManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); LocationListener mlocListener = new MyLocationListener(); mlocManager.requestLocationUpdates( LocationManager.GPS_PROVIDER, 0, 0, mlocListener); and MyLocationListener class: public class MyLocationListener implements LocationListener{ @Override public void onLocationChanged(Location loc){ loc.getLatitude(); loc.getLongitude(); tv_GPSlat.setText("Latitude: " + loc.getLatitude()); tv_GPSlon.setText("Longitude: " + loc.getLongitude (HowTos)