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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:39:46+00:00 2026-05-26T02:39:46+00:00

I am making an Android application, but i have a problem. I have no

  • 0

I am making an Android application, but i have a problem. I have no idea what is the best way to update the database in the client application from my server (if the user click the “check for update” button). How should i set the current database version in client-side so that i can try to compare with the latest database version in server ? how should i check from server if there is any new database update ? should i use PHP / java server ?

My Case :
User installed my app that come with an sqlite database version 1.0
But later, i updated the sqlite database to version 2.0 and upload it to server (i havent think about what kind of server will i use, any idea (java or php) ?)
and i want when the user click “check for updates”, the app will check for the latest database version, if the latest db version is 2.0 (which is >1.0) then it will download and replace the old sqlite db (1.0).
How should i set the sqlite database version in client-side (Android) and compare it with the latest version in server-side?

Any help will be really appreciated.
Thanks !

  • 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-26T02:39:46+00:00Added an answer on May 26, 2026 at 2:39 am

    Based on your comment to this answer…

    If your problem is that simple I would suggest to do following:

    • Request your server for latest newest database state via HTTP (it could return a timestamp or database version) e.g. with http://www.yourserver.tld/?dbversion
    • If your local database is less then the returned timestamp or version you pull the database from server e.g. with http://www.yourserver.tld/?dbget
    • After that you persist the timestamp or version (for example in a shared preference)

    Your server always knows which version is the newest and could update the returned timestamp or the returned (and incremented) version number…

    PHP or Java: I would recommend PHP for such a simple task (also because every webspace offers that option). I would realize that by a simple GET request (like demonstrated before). Java is just overkill (but still possible).

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

Sidebar

Related Questions

I am new to android and making my first application. I have a problem
So I'm making this android application, that needs to read data from user-provided CSV
I am making the phonegap android application in html,javascript and jquery.I have made the
I am making an android application in which i have five items in a
I am making an android application in which I have put 10 images and
I am an android developer.I am making an application in which I have to
im making an android application which requires a user to register using a form
Hello I started trying to develop Android applications today, but I have a problem:
I have such a problem. I am writing Adobe AIR application for Android device.
I have an android application with a SQLite database and I am trying to

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.