Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7078105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:30:20+00:00 2026-05-28T06:30:20+00:00

I have a webserver that hosts data for an application that I’m building on

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:30:21+00:00Added an answer on May 28, 2026 at 6:30 am

    There isn’t really a common framework for this in general as far as I know. There are quite a few posts here that deal with image caching which could be easily adaptable but nothing that I know of completely generalized or specialized for offline viewing. That said, most of the solutions just work with URLs and files, so it could work fairly easily if your data is very simple. It very much depends on what your data is and how you plan to display it though. If it consists of web pages to be displayed in a WebView, then it could get annoying because then you have to traverse links (including images, css, javascript, etc.) and cache those. However, if you are working with specific isolated URLs or structured data from which you can parse all related URLs easily, then it’s much easier.

    Here’s one such image-oriented solution: https://github.com/ZaBlanc/WebImageView

    The general approach is fairly straightforward. It might be something like this:

    • Any time you try to “get” a URL, you always read it from your cache
    • If your cache has it then you can use it happily and be on your way
    • If your cache doesn’t have it, then you have to queue up a request to asynchronously download the file
    • Once a file download has completed, send off some sort of notification to tell the application to handle it.

    You also have to deal with stuff like cache expiration policies, and how to display the data, but might be a start.

    If you’re thinking of two-way synchronization, then it’s going to get much harder. You have to think about locks and conflicts (can two people update the same item at the same time? if so, then what happens?), atomicity (do you have related items that only make sense if both are updated/added?), data validation (what if the user sends bad data) and a whole lot more. That’s probably why no one has come up with anything (that I know of) quite yet. It’d be quite useful, but it can get pretty complex and really involves both client and server work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this webserver that have an IP address xxx.xxx.xx.x, I also have a
I have an embedded webserver that has a total of 2 Megs of space
I have as asp.net webserver that I hosted and I went to my mobile
I have an HttpHandler on my webserver that takes a URL in the form
We have a setup here that is less than ideal, We have our webserver
Most python frameworks will have a development webserver of some kind that will have
I have project that I'm working on that is going to require a webserver.
I have a web server that runs my web application. If I want to
I have developed a web application that uses a web server and database hosted
If I want to deploy an ASP.NET application that hosts RIA Services endpoints for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.