title: How to check if a user has logged in with Google Account
body: <p>I am integrating Facebook and Google authentication in my android application.
  While launching the application, I want to check if a user is logged on to the app with Facebook or Google authentication. I got success with Facebook using the below code:</p>
  
  <pre><code>if (Profile.getCurrentProfile() != null &amp;&amp; AccessToken.getCurrentAccessToken() != null){
          Intent i = new Intent(Splash.this, SecondActivity.class);
          startActivity(i);
          finish();
  }
  </code></pre>
  
  <p>But having no success with Google. Also, I searched for many answers but most of them were using Firebase for Google authentication. </p>
  
  <p>How would I achieve this using Google Authentication and not Firebase.</p>
  
  <p>Help would be appreciated.
  Thanks in advance!</p>