title: Why result sucess (if method) is not working in handleSignInResult method in gmail authentication in android?
body: <p>Result success is not working in handleSignInResult method in gmail authentication API in android How to resolve this issue ?</p>
  
  <pre><code>private void handleSignInResult(GoogleSignInResult result) {
      //If the login succeed
      if (result.isSuccess()) {
          //Getting google account
          GoogleSignInAccount account = result.getSignInAccount();
  
          //Displaying name and email
          textViewName.setText(acctount.getDisplayName());
          textViewEmail.setText(account.getEmail());
  
          //Initializing image loader
          imageLoader = CustomVolleyRequest.getInstance(this.getApplicationContext())
              .getImageLoader();
  
          imageLoader.get(account.getPhotoUrl().toString(),
              ImageLoader.getImageListener(profilePhoto,
                  R.mipmap.ic_launcher,
                  R.mipmap.ic_launcher));
          profilePhoto.setImageUrl(account.getPhotoUrl().toString(), imageLoader);
      }
  
      else {
          Toast.makeText(this, "Login Failed", Toast.LENGTH_LONG).show();
      }
  }
  </code></pre>