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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:02:40+00:00 2026-05-20T22:02:40+00:00

I have an Android application that installs a database (~2000 rows across all tables)

  • 0

I have an Android application that installs a database (~2000 rows across all tables) to the device when it is first opened. The user can make minor changes to it (one column only) and it is only updated on a new version release.

Due to the nature of the database/application, it is not possible to put the data online (yet).

I am assuming I will install the database (onCreate) with a LOT of inserts, then update it every now and then, and then insert more rows (onUpdate?) with each new release. What would be the best practices for this procedure?

  1. Should I have an XML (or other structure) file that mimics the data and inserts every new row on every update from there?
  2. On each update should I erase all old data, or keep procedures inside of onUpdate() that depend on the current vs new database version (ex: version < X then update these rows and add these…)?
  3. The user can change a column (specific to that user) for each row. Would storing this in a preferences file make more sense?

Working with deployed databases is new to me, so any help would be appreciated!

Thanks!

  • 1 1 Answer
  • 1 View
  • 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-20T22:02:41+00:00Added an answer on May 20, 2026 at 10:02 pm

    Well, I can suggest the migration way. Keep data version in the database. Make each application distribution have files like 1.0-to-1.3.upd, 1.3-to-1.4.upd holding all the update data to make a transition to a new version of the data.

    Each OnUpdate() should check data version in the database and check a list of *.upd files it have to determine if data update is required. And then just applies necessary updates one by one, increasing data version in db each time.

    This is like VBulletin and XenForo forums updates work.

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

Sidebar

Related Questions

I have two threads in an Android application, one is the view thread, and
I have an application that differs for different languages by resources. Is there a
I have to admit that I'm new to Java and Android. db4o seems to
I'm doing some Android development, and I much prefer Visual Studio, but I'll have
Have you ever seen any of there error messages? -- SQL Server 2000 Could
Have you used VS.NET Architect Edition's Application and System diagrams to start designing a
Have a n-tire web application and search often times out after 30 secs. How
I have a main application, and a bunch of sub-applications (they are separate apps,
I have been developing an Android app and testing with a 1.5 AVD and
I want to make some changes to the stock Mms Android application and install

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.