对谷歌云存储在Android应用程序部署数据库 [英] Deploying database on google cloud storage in Android application

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

问题描述

在我的Andr​​oid应用程序,我想从我的Andr​​oid应用程序,以谷歌云存储存储图像。对于我指美孚后台启动 example.In他们有后台数据库这是部署在云存储。但我没有得到我怎么可以部署自己的数据库云。而什么样的步骤来查询的Andr​​oid app.Please云数据库能帮我实现这个功能。任何一个可以建议我补习或链接,可使用和对谷歌的云存储DB正确的指导方针。 谢谢你。

In my android application i want to store images from my android application to google cloud storage. For that i am referring Mobil Backend starter example.In that they have backend database which is deployed on cloud storage. But i am not getting how i can deploy my own database on cloud. And what are the steps to query cloud database in android app.Please help me to implement this functionality. Can any one suggest me tutorial or link which provide proper guidelines for using and storing DB on google cloud. Thank you.

推荐答案

如果您正在编写需要使用存储你自己的App Engine应用程序,你在谷歌云计算的几个选项:

If you are writing your own App Engine application that needs to use storage, you have several options in the Google Cloud:

  1. 在手机后台启动使用的数据存储API,它提供了一个的NoSQL数据存储一样,在谷歌的云,你的App Engine的应用程序可以通过数据存储API进行交互。默认情况下你一共有1GB的空间中获得了自由层,之后,你必须按使用付费的存储要求。

  1. The Mobile Backend Starter using the Datastore API, that provides a NoSQL like datastore in the Google Cloud that your App Engine application can interact with via the Datastore API. By default you get a total of 1GB of space in the free tier, after which you have to pay per use for your storage requirements.

还有就是云存储API,可以让您保存对象,以谷歌的云存储服务。该服务类似于亚马逊S3服务,您可以保存数据,分成几组,即桶。这是一种有偿服务。请参照<一个href="https://cloud.google.com/products/cloud-storage/">https://cloud.google.com/products/cloud-storage/

There is the Cloud Storage API, that allows you to save objects to Google Cloud Storage Service. This service is analogous to Amazon S3 service and you can save your data, classified into groups i.e. buckets. This is a paid service. Refer to https://cloud.google.com/products/cloud-storage/

如果您preFER处理SQL,你可以看看谷歌云SQL,它给你一个MySQL实例在云中。这是一种有偿服务了。请参照<一个href="https://developers.google.com/cloud-sql/">https://developers.google.com/cloud-sql/

If you prefer to deal with SQL, you can look at Google Cloud SQL, which gives you a MySQL Instance in the cloud. This is a paid service too. Refer to https://developers.google.com/cloud-sql/

最后,如果你使用谷歌驱动器帐户的用户本身的应用程序prefers,那么你可以看看直接与谷歌驱动器的API集成。最近谷歌推出了不错的更新,他们的Andr​​oid驱动的API。 <一href="https://developers.google.com/drive/android/">https://developers.google.com/drive/android/

Finally, if you application prefers that you use the Google Drive account of the User itself, then you can look at directly integrating with Google Drive API. Recently Google introduced good updates to their Android Drive API. https://developers.google.com/drive/android/

在所有上述情况中,当谈到与App Engine应用程序进行交互,重要的是你通过像API一个REST在你的App Engine应用程序公开数据服务是可取的。

In all the above cases, when it comes to interacting with the App Engine application, it is advisable that you expose the Data Services via a REST like API in your App Engine application.

这篇关于对谷歌云存储在Android应用程序部署数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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