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 have a backend database which is deployed on Google Cloud Storage, but I don't know I can deploy my own database there.
What are the steps to query the database in my android app? Please help me to implement this functionality. Can anyone suggest a tutorial or link which provides proper guidelines for using and storing DB on Google Gloud?
Thank you.
If you are writing your own App Engine application that needs to use storage, you have several options in the Google Cloud:
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.
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/
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/
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.
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
Related
I wants share data between users that installed my android application. Users can be anywhere in the world. I know that i can do this by storing data on server and then pushing that info to other users. But i don't want to use server. Can this be possible.
Technically its impossible, you don't need a physical server but you need a cloud storage which is basically a server somewhere else in the world.. there are many companies who provide cloud storage services like Microsoft - Microsoft Azure, Google - Google App Engine, Go-daddy, etc. And if your app is small you might not have to pay anything at all because both Microsoft and Google provides you with a free tier which has a certain limit of free storage and other services.. i recommend Google App engine for android app development. :)
I am creating an android app for university which has cloud storage so when the teacher sends a note the student can view it without download it
I want to know if their is any book or tutorials for creating your own cloud storage for android
You will want to use Google Cloud Storage to store your data. To learn more about GCS, you can check this link.
You will need to have a Google Cloud Storage bucket tied to an App Engine application you are going to develop. From your android code, you will want to call the Cloud Endpoints API for your application to retrieve the data from GCS.
For more info about Cloud Endpoints for Android, you can check this link.
I m new to GCM do u guys please guide me for using Google App Engine.
I want to create a signup page which registers details of users on Google server
to signup and logging the account
Is it possible to do so?
Thanks
Google App Engine is a Platform as a Service (PaaS) offering that lets you build and run applications on Google’s infrastructure. App Engine applications are easy to build, easy to maintain, and easy to scale as your traffic and data storage needs change. With App Engine, there are no servers for you to maintain. You simply upload your application and it’s ready to go.
For using App Engine you have to first download an appropriate sdk based on your development environment
Download the Google App Engine SDK
For working on a particular language
Google App Engine Languages
Your question mentions a bunch of technologies and sounds a little confused, so I'll try to summarize these different technologies. Google Cloud Messaging (GCM) makes it possible for your Android app to register itself and for your server to broadcast messages to all registered devices. Google App Engine allows you to create a web server that serves as a backend for your Android app (or as a frontend web app) hosted on Google's cloud infrastructure. Google App Engine includes a feature called Cloud Endpoints which simplifies writing a backend for Android by automating serialization/deserialization, authentication, and auto-generating an Android client library for invoking the backend functionality. Google+ sign in allows you to provide users of your application with the ability to sign into your application with their Google+ account. Google+ sign in on the web also makes it possible to provide an opportunity to install your Android app and to persist the sign-in on the installed app.
Sorry for my English(I am not good in english please excuse).
I am working as a android application developer.I try to developing one application with backend support that means i want to use (web services) inside of the application.For that one i am trying to use google cloud for storing my data and access that data in json formt.It is possible to use that cloud data inside of my application.
For storing data in cloud they charge me something?
Please any one help me experts....
Thanks in advance...
At the onset, what you are trying to do is possible within App Engine. To summarise, you want to access some of your data that is stored using one or more of the available choices in the Google Cloud Platform and expose that over a Web Service running in your App Engine app.
When it comes to exposing your existing functionality over REST+JSON, Google Cloud Endpoints is a great way to get started, though nothing prevents you from rolling out your own.
For storage, there are several options and while you need to be mindful of the quotas/pricing, a great deal depends on which mechanism you want to employ as far as your storage API is concerned
Google Datastore API and Blobstore : The Google Datastore API is a non-relational database. The Blobstore is for storing large amounts of data (think images/videos). You have a free quota of 1GB for Datastore and 5GB for Blobstore within your App Engine application quota.
Cloud SQL : If you want to use a relational database , you can use Google Cloud SQL too. The pricing is mentioned on the page.
Google Cloud Storage : This is another storage option available with a Java client API. The pricing is mentioned on the page.
Google Drive : If your application is more of a personal nature and you wish to store some data within a Google Drive account of the user, you could look at that too.
Keep in mind that all these options are available as part of the Google Cloud Platform.
Hope this helps.
I'm trying to use Google Cloud datastore as remote data collector of a bunch of sensors, connected via an android Smartphone.
Firstly I'm trying to make it working in standard java.
The question is if it is possible to access Datastore directly from an android App of I need to build a GAE app that interact with the datastore.
I read for a while the documentation about the google api, but it is not really clear, how to use the Oauth 2.0 protocol.
Thank You all
You can use the oath2 support built into android as long as every user of the app is an admin of your google cloud project/app engine app. If you want to allow untrusted users to upload data, you would have to use your own endpoint and authentication strategy.