2015-11-03 44 views

回答

0

我有一类 onLocationChange

 mapView.removeAnnotation('pin'); 

     glat = loc.getLatitude(); 
     glng = loc.getLongitude(); 

     //Setting the GPS Lat, Lng into the textView 
     //textViewGpsLat.setText("GPS Latitude: " + glat); 
     //textViewGpsLng.setText("GPS Longitude: " + glng); 
     mapView.addMarker(new MarkerOptions().title("pin").position(new LatLng(glat, glng))); 


     Log.d("LAT & LNG GPS:", glat + " " + glng); 

和类showLoc

 glocManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); 
     glocListener = new MyLocationListenerGPS(); 
     glocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000 * 1, 0, glocListener); 

我需要删除注释,所有的时间更新更新时间