Reputation: 7117
In my application I want to give the user the chance to store their data in the Google cloud. At the moment I store the data in a SQLite database on the smartphone. Now I want to create a website, where users can login with their Google account and have all their data from the application.
What do you think is the best way to store the data in the cloud? I do not want to pay for any storrage. Is it possible to upload the whole database to the Google Drive folder from the user and get the data on my own website? Or is there an easier way to upload and fetch the data from the smartphone over the cloud to my website? Has Google any APIs for that or which Google Service is the best for me?
Upvotes: 1
Views: 136
Reputation: 8816
You definitely have several options with the Google cloud but some of them are paid options.
You could host your application on Google App Engine. App Engine gives you generous free quota, including storage up to 1GB. You will have to use the Datastore API over here to write your persistence layer. Beyond 1GB, you will need to pay for storage.
You could opt for Google Drive, in which case you can easily integrate with the Google Drive API for Android and store this data under the particular user's Drive account. This would then shift the responsibility of having enough storage onto the User and this would well for you.
Google Cloud also provides Cloud SQL as a storage option and you could use your App Engine application to integrate with Cloud SQL if you like a relational approach to storing your information, but this is chargeable.
Upvotes: 2