I am using following code to add account into Account list
final AccountManager accountMgr = AccountManager.get(this.getApplicationContext());
Account ac = new Account("my.id","com.google");
try{
accountMgr.addAccountExplicitly(ac, "password", null);}
catch(Exception e){
String str = e.getLocalizedMessage();
Log.e("err",str);
}
but getting following error everytime: 'caller uid 10066 is different than the authenticator's uid'