title: using enableAutoManage() in fragment
body: <p>Is there another way to connect Google API client?</p>
  
  <p>I use auto complete places and I have to use this code some where in MYFRAGMENT</p>
  
  <pre><code>mGoogleApiClient = new GoogleApiClient.Builder(MainActivity.this)
                  .addApi(Places.GEO_DATA_API)
                  .enableAutoManage(this, GOOGLE_API_CLIENT_ID, this)
                  .addConnectionCallbacks(this).build();
  </code></pre>
  
  <p>My problem with </p>
  
  <pre><code>enableAutoManage(this, GOOGLE_API_CLIENT_ID, this)
                      .addConnectionCallbacks(this).build();
  </code></pre>
  
  <p>I can't deal with it because when I replace <code>this</code> with <code>getActivity()</code> I have many problem with casting</p>
  
  <p>thanks for help and sorry if this question is silly.</p>