@Override
  public void onPause() {
    super.onPause();

    // stop geolocation
    if (mGeolocation != null) mGeolocation.stop();
  }