title: Adding in application Google Account using AccountManager
body: <p>I'm trying to add functionality in my application, that add a google account to Android Account Manager, by use of method<br><code>
      mAccountManager = AccountManager.get(getBaseApplicationContext());</code><br> <code>Account account = new Account("sample.account", "com.google");</code><br><code>
          ac.addAccountExplicitly(account, "password", null);</code><br>
  But it indicates an exception </p>
  
  <blockquote>
    <p>java.lang.SecurityException: caller uid 10117 is different than the
    authenticato r's uid</p>
  </blockquote>
  
  <p><br>
  Is it possible to add account in application code (being more precisely logging to already existing google account)? Which method should I use?</p>