title: Google Sign in not working properly
body: <p>I have integrated sign in with google in my android application, now issue is that in some device its not working,but in my emulator and in some device it is working fine,what is the issue?</p>
  
  <p><a href="https://developers.google.com/identity/sign-in/android/" rel="noreferrer">https://developers.google.com/identity/sign-in/android/</a></p>
  
  <p><a href="http://www.androidhive.info/2014/02/android-login-with-google-plus-account-1/" rel="noreferrer">http://www.androidhive.info/2014/02/android-login-with-google-plus-account-1/</a></p>
  
  <p>this two tutorials to sign in, but when i run my app, and try to login it allows to select account,but when i click on that in my logcat it shows</p>
  
  <pre><code>System.out: Google logout
  </code></pre>
  
  <p><strong>CODE</strong></p>
  
  <pre><code>private void handleSignInResult(GoogleSignInResult result) {
          Log.d("", "handleSignInResult:" + result.isSuccess());
          if (result.isSuccess()) {
              // Signed in successfully, show authenticated UI.
              GoogleSignInAccount acct = result.getSignInAccount();
  
              Log.e("", "display name: " + acct.getDisplayName());
  
  
              personName = acct.getDisplayName();
              personPhotoUrl = String.valueOf(acct.getPhotoUrl());
              ggoleemail = acct.getEmail();
              googleid = "G" + acct.getId();
            //  String baday = String.valueOf(acct.getAccount());
  
              Log.e(TAG, "Name: " + personName + googleid  + ", email: " + ggoleemail
                      + ", Image: " + personPhotoUrl);
            /*  txtName.setText(personName);
              txtEmail.setText(email);
              Glide.with(getApplicationContext()).load(personPhotoUrl)
                      .thumbnail(0.5f)
                      .crossFade()
                      .diskCacheStrategy(DiskCacheStrategy.ALL)
                      .into(imgProfilePic);
  */
              googleslogins();
            //  updateUI(true);
  
          } else {
              // Signed out, show unauthenticated UI.
              //updateUI(false);
              System.out.println("Google logout");
          }
      }
  </code></pre>