【发布时间】:2011-12-30 12:32:34
【问题描述】:
我正在查看 JumpNotes 的代码,但有一件事我只是想不通。 JumpNotes: AccountList.java
public static final String[] GOOGLE_ACCOUNT_REQUIRED_SYNCABILITY_FEATURES =
new String[]{ "service_ah" };
这用于获取谷歌帐户,如下所示:
mAccountManager.getAccountsByTypeAndFeatures(SyncAdapter.GOOGLE_ACCOUNT_TYPE,
SyncAdapter.GOOGLE_ACCOUNT_REQUIRED_SYNCABILITY_FEATURES,
“service_ah”这个功能是什么?这是什么意思? 有什么方法可以获取 Android 上 google 帐户的身份验证器服务的来源?
【问题讨论】:
-
我也尝试使用此服务,但未能成功,虽然能够在手机中获取谷歌帐户,因为所有内容都在 android 的堆栈中,所以当你添加更多帐户时,它会添加到堆栈所以当您获得 [0] 位置帐户时,这意味着这是用户同步其帐户时的第一个 gmail 帐户,请参阅此链接可能对您有帮助 stackoverflow.com/questions/6035194/…
标签: android android-syncadapter google-authentication google-account