我尝试了许多不同的方法来解决这个问题,这似乎是我们可以解决的。我已经使用 Apps 引擎(与 JumpNote 示例相同)实现了一个 C2DM 消息传递系统,并且我希望 Android 设备能够自动创建指定的 google 帐户而不要求提供凭据。我使用了以下方法:
AccountManager accMgr = AccountManager.get(this);
final Account account = new Account(this.getString(R.string.push_account), "com.google");
accMgr.addAccountExplicitly(account, this.getString(R.string.push_account_pass), null);
这将引发以下内容: java.lang.SecurityException: caller uid 10086 is different than the authenticationator's uid
有没有人在不要求用户手动输入凭据的情况下成功创建谷歌帐户?
感谢任何对此有所了解的人。