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 8170685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:12:24+00:00 2026-06-06T21:12:24+00:00

I am developing an Android App that stores different types of data in the

  • 0

I am developing an Android App that stores different types of data in the built-in SQLite provided by the Android Platform.

Inside the App I have placed a “Sync” button which is supposed to Sync the data between the local SQLite Database, with an Online SQL Server database on my server.

What is the workaround to handle this? This feature can be found in Google Calendar, where you can view the calendar’s events on your mobile, and when you add a new event and Sync the data, you can view the updated data by going to your online account too.

Note: I don’t want to centralize my database online, because I also want to give the mobile users the ability to use the App without internet connection.

  • 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-06T21:12:27+00:00Added an answer on June 6, 2026 at 9:12 pm

    You should take a look at the SampleSyncAdapter project in the Android SDK demos (Transferring Data Using Sync Adapters).
    It shows you how to do synchronization “Android style”, which requires no user interaction by manually tapping a sync button all the time.

    On top of that you need to write server software that is able to provide your SyncAdapter with a “delta” of all changes since the last commit. The most basic approach is keeping a “last synchronized” time stamp in your app which has to come from the server, otherwise you could get into trouble because of time differences between client and server. Normalize all time stamps as GMT or any timezone of your choice, but stick with that decision.
    If your app needs to display a time stamp in local time, then you need to use the Java Calendar and TimeZone class for converting the normalized time stamp into local time.

    Your app also needs to flag changed local records as “dirty”, so your SyncAdapter knows that it needs to upload these changed or new records to the server.

    Following minimum features are needed for your server software:

    • Update existing record(s) function
    • Add new record(s) function
    • Get updated records since last synchronization (app provides time stamp)
    • Get new records since last synchronization (app provides time stamp)

    You also may want to read through some Google API (like Google Calendar) for getting an idea of how all of this works and how to design the server API interface for the communication.

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

Sidebar

Related Questions

I have basically finished developing an android app that makes use of SQLite databases
I started developing an android app that have to interact with MMS attachements, in
I have a 2.3.3 android app that I am developing that I would like
I have a Titanium Android app that I'm developing and recently deployed to the
I am developing an Android App that gets some data from a web server,
hi guys i have been developing android app that should match most of the
I have an Android app that I am currently developing. I have created icons
I'm developing an Android app that receives the ougoing call event and extract the
I'm developing an Android app that uses Osmdroid to display the maps in offline
The scenario is, i'm developing an android app that uses the internet. This is

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.