Hi all,
I have a problem with google login api. My application work in android 
4.1.2 but not work with android 5 and 6. I am using compile 
'com.google.android.gms:play-services-auth:9.6.1' 
I do not know whats the problem. The only change i make in SignInActivity 
is in 

private void handleSignInResult(GoogleSignInResult result) {
    Log.d(TAG, "handleSignInResult:" + result.isSuccess());
    if (result.isSuccess()) {
        // Signed in successfully, show authenticated UI.
        GoogleSignInAccount acct = result.getSignInAccount();
        String email = (String) acct.getEmail();
        String[] part= email.split("@");
        
        // mydomin is host in google
           if( part[1].equals("mydomin")){
            
            // se for utilizador valido manda para outra pagina
          Intent logado = new Intent(this,RecursosBVActivity.class);
           logado.putExtra("user",part[0]);
            logado.putExtra("token",acct.getIdToken());
            startActivity(logado);
            updateUI(true);

        }else{
            signOut();
            updateUI(false);
        }
    } else {
        // Signed out, show unauthenticated UI.
        signOut();
        updateUI(false);
    }
}

And my logs of SigninActivity:
D/AutoManageHelper: starting AutoManage for client 0 false false
D/AutoManageHelper: onStart true 
{0=com.google.android.gms.internal.zzqa$zza@4a94875}
D/GoogleSignInApiImpl: getSavedSignInResultIfEligible
D/GoogleSignInApiImpl: trySilentSignIn
D/SignInActivity: handleSignInResult:false
D/SignInActivity: handleSignInResult:false

Some one can help me please.


-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/45220e9b-5a28-4cd6-95aa-4a0460749012%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to