【发布时间】:2010-09-16 18:15:59
【问题描述】:
我正在尝试从 android 访问 picasa,
我已尝试运行以下示例代码
http://code.google.com/p/google-api-java-client/source/browse/picasa-atom-android-sample/?repo=samples#picasa-atom-android-sample%3Fstate%3Dclosed
但我在这里只得到一件事,
并且没有选择谷歌帐户的选项。
在我的代码中我得到了
final AccountManager manager = AccountManager.get(this);
final Account[] accounts = manager.getAccountsByType("com.google");
final int size = accounts.length;
size = 0 并且选择的 Google 帐户中没有任何项目
你能告诉我如何设置谷歌帐户,以访问 picasa 相册 或者如果有人有其他想法,我也不介意。
【问题讨论】:
-
Android 不是已经将您的 picasa 网络相册同步到您的画廊吗?
-
抱歉没听明白,我在安卓模拟器上运行这个示例,除了我的安卓模拟器中的那个画廊没有照片。
-
如果您在模拟器中运行它,我认为您无法设置完整的谷歌帐户来访问 picasa。尝试在真机上进行测试。
标签: android google-api picasa google-api-java-client