title: GoogleAPIClient Deprecated - How to Implement New GoogleSignInOptions?
body: <p>I am working on a YouTube tutorial (<a href="https://www.youtube.com/watch?v=gAIErOevfoA" rel="nofollow noreferrer">https://www.youtube.com/watch?v=gAIErOevfoA</a>), and I have gotten my map to work fine, however it is not showing the nearby locations. I noticed there was a line through <code>GoogleApiClient</code> and was told it has now changed to <code>GoogleSignInOptions</code>.</p>
  <p>I'm fairly new to Android Studio, so I don't know really how to implement the new way into this code. I tried just changing <code>GoogleApiClient</code> to <code>GoogleSignInOptions</code>, but now getting more errors and I don't want to mess up what I have.</p>
  <p>Here is the Java file with the errors, I have shorted this a bit, I am also getting one error further down on an if statement -  <code>if (mGoogleApiClient.isConnected()) {...}</code></p>
  <pre><code>public class MapsActivity extends FragmentActivity implements OnMapReadyCallback, GoogleApiClient.ConnectionCallbacks,
          GoogleSignInOptions.OnConnectionFailedListener, LocationListener {
  
      private GoogleMap mMap;
      GoogleSignInOptions mGoogleApiClient;
      double currentLatitude, currentLongitude;
      Location myLocation;
  
      private final static int REQUEST_CHECK_SETTINGS_GPS = 0x1;
      private final static int REQUEST_ID_MULTIPLE_PERMISSIONS = 0x2;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_maps);
          // Obtain the SupportMapFragment and get notified when the map is ready to be used.
          SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()
                  .findFragmentById(R.id.map);
          mapFragment.getMapAsync(this);
  
          setUPGClient();
      }
  
      private void setUPGClient() {
          mGoogleApiClient = new GoogleSignInOptions.Builder(this)
                  .enableAutoManage(this, 0, this)
                  .addConnectionCallbacks(this)
                  .addOnConnectionFailedListener(this)
                  .addApi(LocationServices.API)
                  .build();
          mGoogleApiClient.connect();
      }
  }
  </code></pre>