Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Persisting user data from online services for "offline viewing" on Android applications

I have a webserver that hosts data for an application that I'm building on Android tablets. The data changes fairly frequently, but I realize that tablets and phones aren't always connected to data, necessarily, and it would be good for users to already have access to data that they had viewed before.

I want an application to pull data from the webserver whenever possible, and when it's not possible, to pull from the SQLite server (or whatever the proper method is) on the phone.

Is there an implementation or practice already set in place to do this? If so, what is the current method for implementing such a feature? And could this same method be applied to making changes to data and then pushing those changes whenever a data-connection came back?

like image 617
ashays Avatar asked Jan 19 '12 23:01

ashays


People also ask

What does download for offline viewing mean?

What is Offline Viewing? The Offline Viewing feature allows eligible users to download DRM-supported content with a network connection and watch the downloaded content on the app when the device does not have an internet connection.

What does offline website data mean?

Offline Website Data consists of the files that a website stores on your computer that allow you to use it even when you aren't connected to the internet. Site Preferences are site-specific preferences, including permissions for a site such as a pop-up blocker exception.


1 Answers

Not sure if this helps but I had a similar requirement and found an android app called memento database that basically has a sync button so it uses the phone to store the data and then syncs to a Google drive spreadsheet, you can also update the spreadsheet and when the user clicks sync on the android it will update their local database. Whether this would work for a multi-user environment I'm not so sure but you maybe able to dissect the app or use a similar method?

regards

(ps I am in no way affiliated with the app I mentioned)

like image 195
c7borg Avatar answered Oct 13 '22 01:10

c7borg