save data for offline mode of a web service app - android

I have developed an android tourist app using web service (json api),the app is working fine. App have map view with markers ,and photo gallery ,location detail etc.
Now client want to add a feature of offline mode ,means that when the app will work perfectly when internet will not available.
I have google a lot and found that sqlite database will be very useful for this functionality and I can implement this but my problem is that :
->how to save data in sqlite,as there are 15-20 apis which I had implemented in the app
->now how will I save these apis to the sqlite table and how to connect them in offline mode with the app
->how will connect all the tables each other
I have never done this kind of work ,please suggest me any help.
Please suggest me any solution,If you have another way to implement this functionality then please guide me .

Related

Android connection to data base to store user login/register details

Im engineer student trying to develop android app for mini project. I have 2 layouts Login and Register. When user enter details and click on login/register button i want to store his data into database. How to do it ?. I mean do i need to connect to database from my android code only or do i need to develop web service which handles all this things. Im confused please someone explain. I tried web services(server side code which is in my laptop)it dint work for me.

How to Save android app user data to server

Currently I am working on one android app which takes user's info and let them register for the app.
But I am having problem while connecting my backend with my app.
In order to save the data I use server host which I don't know how to implement for android users.
Help me with this so that I can start building my apps..
If you are sending basic user info, maybe you can publish a rest webservice on the server and consume it from android app. im using retrofit right now to consume rest webservices from android and is very easy to use.

json with android mobile application

Hi guys so I am new to android development or any mobile device development.
So I am working on a project that consists of two application.
One with ASP.NET MVC4, one with Android.
what it is doing right now, Android device is accessing database server of ASP.Net application and saves data. This is able because currently, android app has database access information in the codes(db login info).
Since method above is extremely stupid I need help.
So what I am looking into is to use JSON(if possible). ASP.NET MVC4 application is already JSON ready, and i've made sandbox application that brings information from web app to android app. BUT my question here is is it possible to do same thing the other way around. Is it possible to make android application to make JSON and web application to access that application? I dont think this is possible.
So how do other REAL mobile applications save users data on their database server without including db access information within the code?
This is usually done through web api - have a look at twitters api as an example https://dev.twitter.com/docs/api/1.1
You would have to pass data to the server using the api, just as you would use an api to get data from the server.

Fetch data from internet on App install android

I developed an app which fetches a website data. Now the app will work only when the internet is available. But I want to add some content to the app for viewing in offline mode. So I want to know is it possible to fetch data from internet on installation time?
It's not possible. You can consider downloading your data on first launch.

syncing android database with server with intermittent internet conectivity

so I am writing an android app that will be used at a point of sale in some shops for survey questions. I have a java jsf web app using jpa with a mysql database that I want to sync with, preferably both ways but only a couple of tables. The android app will have only a few tables and will not replicate my server database completely. Unfortunately the android apps will in some places have only intermittent internet access that will drop in and out. I am currently looking at different options to use to store my data on android. I have looked at:
writing my own sync between the database on my server and SQLite on android but there has to be an easier option
storing my data on app engine and syncing with app engine as per the example in the android developers guide however I am not sure how my limited internet connectivity will work
using couchdb but I dont really want to go down this route as I already have the server side set up
does anyone have any ideas?
can I store data locally using android then sync with app engine when I have a connection?
Thanks

Categories

Resources