使用此代码会引发该异常,并且不会将创建的帐户添加到帐户管理器中。
AccountManager am = AccountManager.get(activity);
Account acc = new Account(name,activity.getString(R.string.account_type));
am.addAccountExplicitly(acc,"Password",null);
我遵循了这个 - http://developer.android.com/training/id-auth/custom_auth.html
知道为什么会这样吗?
//edit: Caused by: java.lang.SecurityException: caller uid 10035 is different than the authenticationator's uid