Search in sources :

Example 16 with GoogleSignInAccount

use of com.google.android.gms.auth.api.signin.GoogleSignInAccount in project coins-android by bubelov.

the class SignInActivity method handleSignInResult.

private void handleSignInResult(GoogleSignInResult result) {
    if (result.isSuccess()) {
        GoogleSignInAccount account = result.getSignInAccount();
        new AuthWithGoogleTask(account.getIdToken()).execute();
    }
}
Also used : GoogleSignInAccount(com.google.android.gms.auth.api.signin.GoogleSignInAccount)

Aggregations

GoogleSignInAccount (com.google.android.gms.auth.api.signin.GoogleSignInAccount)16 GoogleSignInResult (com.google.android.gms.auth.api.signin.GoogleSignInResult)5 IOException (java.io.IOException)2 JSONException (org.json.JSONException)2 Response (com.android.volley.Response)1 VolleyError (com.android.volley.VolleyError)1 ConnectionResult (com.google.android.gms.common.ConnectionResult)1 GoogleApiClient (com.google.android.gms.common.api.GoogleApiClient)1 GoogleAuthorizationCodeTokenRequest (com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeTokenRequest)1 GoogleTokenResponse (com.google.api.client.googleapis.auth.oauth2.GoogleTokenResponse)1 NetHttpTransport (com.google.api.client.http.javanet.NetHttpTransport)1 CustomRequest (dz.easy.androidclient.Util.CustomRequest)1 HashMap (java.util.HashMap)1 Request (okhttp3.Request)1 JSONObject (org.json.JSONObject)1 User (org.michenux.drodrolib.security.User)1