Android 中的 Picasa 访问:PicasaUploadActivity
我是 Android 新手,我正在努力弄清楚我可以使用哪些工具。 我现在正在针对 Android 2.0.1 进行开发,因为我的设备就是这样运行的。
具体来说,我正在编写一个应用程序,我想将图像上传到 Picasa 相册。我几乎可以肯定这是受支持的;例如,内置(Google?)照片查看器有一个带有 Picasa 选项的“共享”按钮,甚至还有一小部分示例代码,包括片段
[借用的代码!如果这违反了规则,我深表歉意..]
temp.setComponent(new ComponentName
("com.google.android.apps.uploader",
"com.google.android.apps.uploader.picasa.PicasaUploadActivity"));
startActivityForResult(temp, PICASA_INTENT)
这看起来正是我想要的。
但我在任何地方都找不到任何文档。事实上我很不清楚如何使用这种类型的资源。在 Eclipse 中,我是否需要包含另一个项目 com.google.android.apps.uploader
?如果是这样,我该如何获取它?我该如何包含它?有没有提供工作示例代码供我查看?
I am new to Android, and I'm struggling to figure out exactly what tools are available to me.
I am developing for Android 2.0.1 for now, just because that is what my device runs.
Specifically, I am writing an app that I would like to upload images to a Picasa album. I am almost sure this is supported; for example, the built in (Google?) photo viewer has a 'share' button with a Picasa option, and even a small bit of sample code, including the snippet
[borrowed code! apologies if this is against the rules..]
temp.setComponent(new ComponentName
("com.google.android.apps.uploader",
"com.google.android.apps.uploader.picasa.PicasaUploadActivity"));
startActivityForResult(temp, PICASA_INTENT)
which looks like exactly what I want.
But I can't find any documentation anywhere. I am in fact quite unclear how to use this type of resource. From within Eclipse, do I need to include another project, com.google.android.apps.uploader
? If so, how do I get it? How do I include it? Is there any working sample code provided for me to peek at?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
视频 Google I /O 2011 - 在 Android 上访问 Google API 的最佳实践(第 40 分钟)
video Google I/O 2011 - Best practices for Accessing Google APIs on Android (40th min.)
请参阅 android 开发人员:picasa:
所以没有文档,你只需 重用现有应用程序的 Activity。
see android-developers: picasa:
So there is no docs, you just Re-using an Activity of existing app.