且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用 android.accounts 身份验证器的问题

更新时间:2023-12-03 12:14:46

我已经解决了.

事实证明这是Android 2.0中的一个错误.
如果您在 AccountManager 中添加一个帐户,则在 Android 2.0 平台下,您还必须为该帐户提供一个 SynAdapter.但是在Android 2.1 及更高版本下一切正常.

It turns out that it's a bug in Android 2.0.
If you add an account to the AccountManager, you must also provide a SynAdapter to the account, under the Android 2.0 platform. But things are all right under Android 2.1 and above.

这是一个已知问题,请参考:
http://code.google.com/p/android/issues/详细信息?id=5009

AccountManager 没有 SyncAdapter?

This is a known issue, please refer to:
http://code.google.com/p/android/issues/detail?id=5009
and
AccountManager without a SyncAdapter?