title: Can't connect to GoogleAPIClient LocationServices.API
body: <p>I can't seem to make <code>GoogleApiClient</code> to work on my project. I'm using <code>LocationServices</code>, <code>OnConnected</code> is not firing even though i have the <code>client.connect()</code> called in the <code>onStart</code> method.
  I've searched stackoverflow and tried solutions given but i still cant make it work.
  i tried checking if i was connected but <code>client.isConnected()</code> outputs false always.
  my permissions are:</p>
  
  <p><code>android.permission.INTERNET
  android.permission.ACCESS_COARSE_LOCATION
  android.permission.ACCESS_FINE_LOCATION
  </code></p>
  
  <p>am i missing something here?</p>
  
  <p>edit:</p>
  
  <pre><code>private GoogleApiClient client;
  protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_my);
  ButterKnife.inject(this);
  
  buildGoogleApiClient();
  }
  
  protected synchronized void buildGoogleApiClient() {
  client = new GoogleApiClient.Builder(this)
  .addConnectionCallbacks(this)
  .addOnConnectionFailedListener(this)
  .addApi(LocationServices.API).build();
  }
  
  @Override
  public void onStart() {
  //  client.connect();
  super.onStart();
  
  // ATTENTION: This was auto-generated to implement the App Indexing API.
  // See https://g.co/AppIndexing/AndroidStudio for more information.
  client.connect();
  Log.e("Connected?", String.valueOf(client.isConnected()));
  
  }
  
  public void onConnectionFailed(ConnectionResult connectionResult) {
  Log.e("Failed?", connectionResult.getErrorMessage());
  }
  
  
  @Override
  public void onConnected(Bundle bundle) {
  if ( ContextCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED ) {
  return;
  }
  mLastLocation = LocationServices.FusedLocationApi.getLastLocation(
  client);
  longt = mLastLocation.getLongitude();
  latt = mLastLocation.getLatitude();
  if (mLastLocation != null) {
  //  mLatitudeText.setText(String.valueOf(mLastLocation.getLatitude()));
  //  mLongitudeText.setText(String.valueOf(mLastLocation.getLongitude()));
  }
  
  }
  </code></pre>