If you display your position and / or compass in your mapView, you must disable them. If you do not, GPS is still active.
Example:
private MapView mapView; private MyLocationOverlay Location; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.frame_layout); mapView = (MapView) this.findViewById(R.id.mapView); Location = new MyLocationOverlay(this, mapView); Location.enableMyLocation(); Location.enableCompass(); mapView.getOverlays().add(Location); } @Override public void onDestroy() { Location.disableMyLocation(); Location.disableCompass(); }
source share