Uploading an SQLite database to Google App engine? - android

In my application I am saving user's data within an SQlite database on their device. I want to add the functionality that whenever WIFI is available the contents of the Database can be uploaded on to Google App engine's Data Store.
I want to know if this is possible? And if so, how difficult is it to implement?

Of course it's possible to do that, even more, it's an easy stuff. All you have to do is to create a web application with google app engine, than your android application sends its data to GAE. You can do that using HttpURLConnection to send your data and java servlets to intercept your requests and save your data in datastore. You can also use web services.

On GAE side, you need to create backend API using Cloud Endpoints and generate client library for Android devices. Your backend will be responsible to receive the data and save it in datastore. Another alternative will be to use Cloud Datastore API Client Library to interact with datastore directly, but endpoints is a much better option.

Related

I need to make an Android App which will retrieve data from a web database server, so what type of access (telnet, ftp etc) do i need?

I am a beginner in developing android apps, and I need to know which kind of access do I need in order to retrieve data from a web database server to an android app.
You can use Firebase from Google for better database support for your app. You can easily do that using Firebase Documentation.

Can i publish an app using sqlite instead of shared data like google volley?

Are there any specifics for the database or do I need to switch to Google volley and PHP for a shared storage option? or is there a way to publish using sqlite.
I want shared data usage for all app users.
I have an app I made on Android studio using sqlite and is there a way to publish the app without using Google Volley for shared data resources, zim new to this.
If you are going to use VOLLEY and PHP you have to implement and host the backend.
But you can simply use a service like firebase so you dont need to care about a centralized data store.
Another one is DREAMFACTORY where you can create API end points and can use MLAB (an online mongoDb server) as data store. Those are free and open source.

How app engine perform caching using google cloud endpoints

I am developing an android application using google app engine, cloud endpoints, datastore and objectify. I want do caching of application's data so that request on the server comes only when there is a change in the application's data.
There is field name etag associated with each response from app engine server which can be use for the cache. But i don't know how to do that.
I think there is built in caching but I am not sure.
Question
Does app engine provide built-in caching? if yes then how? if no then how can I acheive that using endpoints.
You can enable caching in Objectify. If you do that all data will be stored in the App Engine MemCache. That would improve your performance a lot.

How to store data in cloud and How to access data from cloud by using HTTP api?

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.

Google Cloud Datastore access from Android

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.

Categories

Resources