title: why always LocationSettingsStatusCodes.SUCCESS even GPS turn off
body: <pre><code>if(!locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {
  
      mGoogleApiClient = new GoogleApiClient
          .Builder(this)
          .enableAutoManage(this, 34992, this)
          .addApi(LocationServices.API)
          .addConnectionCallbacks(this)
          .addOnConnectionFailedListener(this)
          .build();
      mGoogleApiClient.connect();
      locationChecker(mGoogleApiClient, this);
      }
  </code></pre>
  
  <p>I want to see gps dialog when android gps turn off.
  but even gps turn off, <code>status.getStatusCode()</code> always success, I think it was error. why?</p>
  
  <pre><code>public static void locationChecker(GoogleApiClient mGoogleApiClient, final Activity activity) {
  
      LocationRequest locationRequest = LocationRequest.create();
      locationRequest.setPriority(LocationRequest.PRIORITY_NO_POWER);
      //locationRequest.setInterval(864 * 1000);
      //locationRequest.setFastestInterval(864 * 1000);
      LocationSettingsRequest.Builder builder = new LocationSettingsRequest.Builder()
      .addLocationRequest(locationRequest);
      builder.setAlwaysShow(true);
      PendingResult&lt;LocationSettingsResult&gt; result =
      LocationServices.SettingsApi.checkLocationSettings(mGoogleApiClient, builder.build());
  
      result.setResultCallback(new ResultCallback&lt;LocationSettingsResult&gt;() {
  
      @Override
      public void onResult(LocationSettingsResult result) {
          final Status status = result.getStatus();
          final LocationSettingsStates state = result.getLocationSettingsStates();
              switch (status.getStatusCode()) {
                  case LocationSettingsStatusCodes.SUCCESS:
                  // All location settings are satisfied. The client can initialize location
                  // requests here.
                  break;
                  case LocationSettingsStatusCodes.RESOLUTION_REQUIRED:
                  // Location settings are not satisfied. But could be fixed by showing the user
                  // a dialog.
                  try {
                  // Show the dialog by calling startResolutionForResult(),
                  // and check the result in onActivityResult().
                  status.startResolutionForResult(
                  activity, 1000);
                  } catch (IntentSender.SendIntentException e) {
                  // Ignore the error.
                  }
                  break;
                  case LocationSettingsStatusCodes.SETTINGS_CHANGE_UNAVAILABLE:
                  // Location settings are not satisfied. However, we have no way to fix the
                  // settings so we won't show the dialog.
                  break;
                  }
          }
      });
  }
  </code></pre>