Exemplo n.º 1
0
  @Override
  protected void onResume() {
    super.onResume();
    if (!utils.isGpsEnabled()) makeGpsDialog().show();
    else {
      if (userLocation == null) {
        Location location = utils.getUserLocation();
        locationListener.onLocationChanged(location);
      }
    }

    if (locationListenerEnabled && !utils.isLocationListenerExists())
      utils.setUserLocationRequestInterval(
          locationListener, GpsUtils.GPS_INTERVAL_TIME_INTENSE, GpsUtils.GPS_INTERVAL_TIME_INTENSE);
  }