/** Disable orientation updates */ public void disableCompass() { if (mSensorListener != null) { mSensorListener.stopListening(); } // Reset values mSensorListener = null; mAzimuth = Float.NaN; // Update the screen to see changes take effect if (mMapView != null) { mMapView.postInvalidate(); } }