这是由谷歌API使用的文件存储Android应用的最佳方式?谷歌驱动器SDK或谷歌云存储API? [英] Which Is the best way to use file storage for Android app by Google API? Google Drive sdk or Google cloud Storage API?

查看:257
本文介绍了这是由谷歌API使用的文件存储Android应用的最佳方式?谷歌驱动器SDK或谷歌云存储API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要建立的Andr​​oid应用程序从服务器下载多个文件安全。我想使用谷歌API!知道对不对我糊涂其中之一,当使用在谷歌驱动器SDK API的或谷歌云存储?

I want to build the Android App which downloads many files from server securely. I want use the Google api! Right know I confused which one use when in Google Drive sdk API's or Google cloud storage?

要求:

我要下载的文件(20MB为40MB Zip文件)使用身份验证安全文件服务器或云服务器。我想知道的是它可能与谷歌的API提供。

I want to download the files (20mb to 40mb Zip files) securely with authentication to file server or cloud server. I want to know is it possible with google api's available.

我发现,有些样本codeS可供<一个href=\"http://stackoverflow.com/questions/15921672/google-drive-implimentation-to-android-app-and-downloading-the-file-from-google\">Google Android版云端硬盘可用于谷歌Android云存储API,SDK 但没有样品!

I found that some sample codes available for Google Drive sdk for Android but no samples available for Google Cloud Storage api in android!

的<一个任何指导href=\"http://stackoverflow.com/questions/15652665/google-cloud-storage-download-for-ios-android-app?rq=1\">google对于Android应用云存储下载任何帮助将有助于我。

Any guidance for google cloud storage download for Android App Any help will be helpful to me.

请注意:我不能使用APK扩展文件,其中一次下载所有数据

Note: I can't use APK expansion file which downloads all data at once.

推荐答案

这听起来像任一服务的可能的使用你的目的,但是我认为谷歌存储将是一个更好的选择。驱动器是更适合用于存储用户特定的文件,例如设置,应用程序的状态,或备份。使用谷歌存储可以通过,只有你的应用程序可以访问一个服务帐户安全地访问这些文件。谷歌存储也有访问控制列表,所以你可以添加/根据需要为每个用户删除访问,如果你想采取的路线。

It sounds like either service could be used for your purpose, however I think Google Storage would be a better fit. Drive is better suited for storing user-specific files such as settings, application state, or backup. Uses Google Storage you could access the files securely via a service account that only your app has access to. Google storage also has ACLs so you could add/remove access as needed to each user if you wanted to take that route.

您可以通过使用标准的REST协议然而谷歌已经创造了把艰苦奋斗出来的一些大客户端库访问存储API。客户端库是在大多数有API的(包括新的AppEngine终点)pretty标准所以一旦你学会了一个服务,您可以方便地使用他人之一。下面是一个例子链接云存储。他们是为应用服务引擎和命令行书面所以他们可能需要做一些修改和检查的依赖关系,以确保您有Android的罐子。

You can access the Storage API by using standard REST protocols however Google has created some great client libs that take the hard work out of it. The client libs are pretty standard across most of there APIs (including new appengine endpoints) so once you learn one service you can easily use one of the others. Below is a link to an example for cloud storage. They are written for appengine and command line so they may need to be some modification and checking the dependencies to make sure you have the android jars.

的http:// code.google.com/p/google-api-java-client/wiki/APIs#Cloud_Storage_API

希望这有助于。

这篇关于这是由谷歌API使用的文件存储Android应用的最佳方式?谷歌驱动器SDK或谷歌云存储API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆