The GoogleApiClient object wraps a ServiceConnection to Google Play services; this GoogleApiClient object is used to communicate with the Google+ API and becomes functional after the asynchronous connection has been established with the service.

We will use the connect method of GoogleApiClient on loginButton click: