使用 Android 访问 picasa
我正在尝试从 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;
大小= 0,并且选择的Google帐户中没有任何项目
,所以您能告诉我如何设置Google帐户,以访问picasa相册吗? 或者如果有人有其他想法我也不介意。
I am trying to access picasa from android ,
i have tried to run following sample code
http://code.google.com/p/google-api-java-client/source/browse/picasa-atom-android-sample/?repo=samples#picasa-atom-android-sample%3Fstate%3Dclosed
but i am getting only one thing over here ,
and there is no options to select google account.
in my code i am getting
final AccountManager manager = AccountManager.get(this);
final Account[] accounts = manager.getAccountsByType("com.google");
final int size = accounts.length;
size = 0 and no items were there in select google account
so can you please tell me how to set up google account , to access picasa album
or if someone has another idea then also i don't mind.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
谢谢你的提问。
运行此示例有两种选择:
当模拟器启动时,您需要在启动示例之前添加 Google 帐户。
有关更多详细信息,请查看 示例说明。
Thank you for your question.
There are two options for running this sample:
When the emulator starts, you need to add a Google Account before starting the sample.
For more details, please take a look a the instructions for the sample.