【发布时间】:2011-09-22 07:28:51
【问题描述】:
我正在使用以下代码将帐户添加到帐户列表中
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);
}
但每次都会出现以下错误: 'caller uid 10066 is different than the authenticator's uid'
【问题讨论】: