title: Login in Android app with Gmail credentials
body: <p>After getting the auth Token how to use it to login with google credentials </p>
  
  <pre><code> AccountManager am=AccountManager.get(this); 
   Account[] accounts= am.getAccountsByType("com.google");
   account=accounts[0];
   amf = am.getAuthToken(account,"com.google", true,  
          new AccountManagerCallback&lt;Bundle&gt;() {  
     public void run(AccountManagerFuture&lt;Bundle&gt; arg0) {  
  
                  try {  
                      Bundle result;  
                      Intent i;  
                      String token;  
  
                      result = arg0.getResult();  
          if (result.containsKey(AccountManager.KEY_INTENT)) {  
                          i = (Intent)result.get(AccountManager.KEY_INTENT);  
                          System.out.println("INtect=="+i.toString());
                          if (i.toString().contains("GrantCredentialsPermissionActivity")) {  
  
                              cbt.startActivity(i);  
                              System.out.println("ssstttt");
                          } else {  
                              cbt.startActivity(i);
                              System.out.println("endddddd");
                          }  
  
                      } else {       
   token = (String)result.get(AccountManager.KEY_AUTHTOKEN);  
  </code></pre>
  
  <p>I have got the generated API key from google Account,but where to send the authToken and API key so that user can login using his gmail credentials</p>