So I've recently tried implementing Google Sign in. The problem is I'm not much of a fan of
Then, also in your sign-in activity's onCreate method, create a GoogleApiClient object with access to the Google Sign-In API and the options you specified.
// Build a GoogleApiClient with access to the Google Sign-In API and the
// options specified by gso.
mGoogleApiClient = new GoogleApiClient.Builder(this)
.enableAutoManage(this /* FragmentActivity */, this /* OnConnectionFailedListener */)
/* FragmentActivity */
A Fragment is not needed. AppCompatActivity is a subclass of
FragmentActivity. If you are using
AppCompatactivity, it can be used as the first argument to