使用 Android 访问 picasa

发布于 2024-09-24 05:22:48 字数 652 浏览 0 评论 0原文

我正在尝试从 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

,但我在这里只得到一件事,

alt text

并且没有选择谷歌帐户的选项。

在我的代码中,我得到的

    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 ,

alt text

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情仇皆在手 2024-10-01 05:22:48

谢谢你的提问。

运行此示例有两种选择:

  1. 在真实手机上运行。
  2. 在具有基于目标“Google API's (Google Inc.) - API Level 8”的虚拟设备的模拟器上运行它。这是唯一可行的目标(截至撰写本答案时)。

当模拟器启动时,您需要在启动示例之前添加 Google 帐户。

有关更多详细信息,请查看 示例说明

Thank you for your question.

There are two options for running this sample:

  1. Run it on a real phone.
  2. Run it on an emulator with a virtual device based on target "Google API's (Google Inc.) - API Level 8". This is the only target that will work (as of the writing of this answer).

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文