Deploying database on Google Cloud Storage in Android application

后端 未结 2 630
南笙
南笙 2021-02-02 04:37

In my android application I want to store images from my Android application to Google Cloud Storage. For that I\'m referring to this Mobil Backend starter example. In that they

相关标签:
2条回答
  • 2021-02-02 05:10

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

    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.

    2. 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/

    3. 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/

    4. 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/

    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.

    0 讨论(0)
  • 2021-02-02 05:31

    Using Google App Engine allows you to setup a local Datastore for testing. When you deploy your App Engine code, it will create the same Datastore on App Engine too [without the data]. Basically, if you follow the steps in the link you have mentioned it will setup Eclipse and App Engine, the App Engine service does not run inside your Android ecosystem. It can be modelled as a REST based URL server, where you can define Endpoints as mentioned here: Java GAE

    As for tutorials: Default Google Docs!

    I have a full app here, almost full application! Sample App

    0 讨论(0)
提交回复
热议问题