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

  • Home
  • SEARCH
  • 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 8614639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:10:04+00:00 2026-06-12T05:10:04+00:00

I am new to Android and am about to write an application that allows

  • 0

I am new to Android and am about to write an application that allows a user to edit some data offline and then sync it to a master database on a server somewhere when online.

I am assuming that in order for the user to be able to work offline, I will need to have a database on the Android device which can be updated via a content provider / database adapter class.

My question is, what are my high level options for authenticating and synchronising my local database with the server database? Are there any common/recommended approaches?. I have heard of using RESTful APIs on the Server (but I do not know much about them) – is this a standard approach?.

Also, is there a common approach to how often the sync is done – e.g. periodically? immediately upon a change when online?.

Any help would be much appreciated as this is very much a grey area for me.

  • 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-06-12T05:10:05+00:00Added an answer on June 12, 2026 at 5:10 am

    it is a little hard to answer all these questions since it really depends upon the application and how you want it to work. But, I would definitely look into RESTful web services. There are a number of good tutorials about this on the web, but basically you have to set up a Web Server that can take parameters in the URL and sometimes data in the body of a POST. For your case it will likely be a POST with data so you can send the update to the DB.

    But, there are some other problems, of course synching has to be done both ways. What if the data was changed on both the server and the mobile client? How do you do conflict resolution there?

    Second, as to the question of how often to sync – that is really up to you and how time critical is the data. Of course the longer you wait between syncs, the more stale the online data will be and the more likely it will be modified in both places. Syncing periodically is probably a good start and then adding in the sync when connectivity is back if you find that several sync periods have gone by without being able to connect – like if the phone is in airplane mode for example. But when syncing periodically, you need to be very mindful of data usage and battery so select a period that is reasonable – perhaps once an hour? And only sync if changes were made.

    Sorry I don;t feel like I can give more detailed info without knowing your actual use case for the data.

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

Sidebar

Related Questions

I would like some help about an Android Application. I used the new Google
So I'm making this android application, that needs to read data from user-provided CSV
I'm new to Android programming, so I'm facing some general problems about choosing the
I am using Eclipse to develop an Android application that plots Bluetooth data. I
I develop the first part of an Android application that allows to broadcast video
I want to write a android application which needs data from the web. This
I am attempting to write an Android application that makes use of the GNU
i am creating a new android application.i am using the table layout. I have
I'm creating an Android application that essentially does nothing but adding '1' to numbers
I am absolutely new in Android and I only would appreciate some tips on

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.