本文介绍了检索在一个Android应用程序从谷歌小号preadsheet数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个Android应用程序,有检索从谷歌小号preadsheet数据。我发现网上的帖子说建议我使用谷歌驱动器API,但我还没有找到如何可以做到这一点的任何例子。是否有人可以帮助我从使用谷歌驱动器API,谷歌的小号preadsheet检索数据的例子吗?谢谢

I am developing an Android App that has to retrieve data from a Google spreadsheet. I have found posts online that suggest that I use the Google drive API but I haven't found any example on how this can be done. Can someone please help me with an example on retrieving data from a Google spreadsheet using the Google Drive API? Thanks

推荐答案

这是我想通了就如何从谷歌的小号preadsheet数据,与感谢也将pinoyyid了他的岗位。 // code:一是从 HTTP下载gdata的库.google.com / P / gdata的Java的客户端/下载/列表。为了将库集成项目,假设在Windows中使用的是Eclipse,请按照下列步骤操作: 1 解压的文件夹,并将包含在该路径下的jar文件:GDATA-src.java-1.47.1 \ gdata的\ java的\ lib和GDATA-src.java-1.47.1 \ GDATA \ java的\ DEPS到项目目录中的库文件夹:gdata的客户端 - 1.0GDATA客户端 - 间 - 1.0gdata的核心 - 1.0GDATA-S preadsheet-3.0GDATA-S preadsheet - 间 - 3.0番石榴13.0.1 2 一旦复制刷新在Eclipse项目通过转到文件 - >刷新。该文件现在应该出现在项目树库。 3。展开项目树并右键单击您要包括,选择坛子里的库目录添加到构建路径。 4 根据指令在的https:// developers.google.com/google-apps/s$p$padsheets/ 。尽情享受吧!

This is what I figured out on how to retrieve data from a Google Spreadsheet, with thanks also going to pinoyyid for his post. First download the gdata library from http://code.google.com/p/gdata-java-client/downloads/list. In order to integrate the library with your project, assuming you are using Eclipse in Windows, follow these steps:1. Unzip the folder and copy the following jar files contained in the path: gdata-src.java-1.47.1\gdata\java\lib and gdata-src.java-1.47.1\gdata\java\deps into the "libs" folder in your project directory:gdata-client-1.0gdata-client-meta-1.0gdata-core-1.0gdata-spreadsheet-3.0gdata-spreadsheet-meta-3.0guava-13.0.12. Once copied refresh the project in Eclipse by going to File --> Refresh. The files should now appear in "libs" in the project tree.3. Expand the "libs" directory in the project tree and right click on the jars you want to include and select "add to build path".4. Now follow the instructions at https://developers.google.com/google-apps/spreadsheets/.Enjoy!

这篇关于检索在一个Android应用程序从谷歌小号preadsheet数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 19:16