Can you use the database on a website for android? - android

I'm developing an app and a website simultaneously. The website will be done in django and using Google' app engine, so therefore Google's database. IS there anyway i can download and use the database for an android app? Preferably I would like it to download and make it available offline to the users.

use a REST api like django tastypie on the server side, and consume the rest resources for the models you need with your android app. After you get the Json/xml messages on your android just save it to the local sqllite db

Android does provide a SQLite interface for you to read and write to a local db. You could fetch the db through a web request and save it locally, yes. Being on Google App Engine does not help / hinder your ability to do this.

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.

Cordova Local Storage Sync with Server

I have a hybrid app where I use a backend server on the cloud using mongodb and nodejs. I feed my frontend web app and android app using http post and get request.
I was wondering if there is a best way to save the data (from server to android or vise versa) and sync them together. Much like how Trello does their android app.
As far as i know local Storage is not a safe storage, as it can be cleaned as needed by the phone.
I recommend using sqlite for the mobile side.
for quick communication with server, i recommend using sockets (i used it for my chat app)

Communication between website and android app

I want to build a website, where the data will be saved in a data base, logical in a sql database. Also, I want to build an android app, which will take the data from the above (sql) data base. How can I achieve it? I mean how can I manage the communication between the website and the android app. In past, I have create website with php and sql and also I have build android apps, but now I want to achieve the communication between them. Can I use parse platform?
FYI, without any server communication you can't use the website database in android application.
If you want to manage the communication between the website and the android app means you need a centralized server which having the data of your web/mobile applications. So, after that by using the web service methods (REST/SOAP) you can achieve the communication between them.
yeah unfortunately chrome won't let webapps use local storage on android. what you can do is create a local server (using org.apache.http package for example), let it run as a background android service, then have the website make requests to that url. Its considered hacky, but it would work. You can post whatever data you wanted the website to know about , and then get it from the website.

Uploading an SQLite database to Google App engine?

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.

should I use amazon cloud server for android app?

I am developing an app that will run in the way that presents restaurant menus and have like buttons for each dish. I am thinking of storing the menus and uses data on amazon cloud server. Any better solutions? If using cloud server, how to access the data in my android app? Implementing sort of web service? or is able to access like querying a remote database?
You can download aws sdk for Android here: http://aws.amazon.com/pt/sdkforandroid/
From api you can access all amazon services, an easy way to start is by using SimpleDB to store your data, probably free tier will solve your problem.
But I strongly recomend an Android cache for offline access to your app, which can be built up using SQLite.

Categories

Resources