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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:55:25+00:00 2026-06-08T22:55:25+00:00

I have a table in my android app that is very simple. Has an

  • 0

I have a table in my android app that is very simple. Has an id and a few longs/ints for values. I haven’t updated my app in a while but I am working on a huge, totally revamped version. I thought about making the app completely independent of the original one but that would potentially disappoint current users. Instead, I’ll make it as a big upgrade off the last iteration. I’m wondering whether I should copy all of the data to a new table and trash the old one or just modify the schema of the existing table and avoid having to delete?

Another question I have is….if I were to go about doing either of these tasks, how would I do so WITH fixed, predetermined values for the new entries in all of the rows corresponding with the original table? I guess it may be hard to understand what I’m truly asking. Let’s say I want a value of “5” added to every row a new column in a table already made. Can I easily go about doing so? If so, how?

EDIT:
I’m gonna be a lot more specific and provide you with what I really want to do. I have 1 table. Let’s call it Z. Z consists of an autoincrement int primary key, int date, numeric price, numeric length, and numeric amount. I will add another table, X, which will have an autoincrement int primary key, and a string value for the name. In table Z, I want to add the attributes: int type, and int x_id (this will link to the string in the X table). How would I go about ALTERING my original table Z using onUpgrade() then populate the new attributes (type and x_id) with 2 variables (in Java)?

  • 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-08T22:55:27+00:00Added an answer on June 8, 2026 at 10:55 pm

    If you change your table’s layout or create a new one depends on the actual changes and your personal preferences, there is no general answer to that question.

    You can do all necessary upgrades/migration tasks in the onUpgrade Method of you SQLiteOpenHelper subclass(es)

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

Sidebar

Related Questions

I'm creating android app that has table layout for the main activity, and that
I have an Android app that has a Content Provider with an SQLiteDatabase implementation.
I have a table in my Android app that only should store the 50
I have a table in a webview that I use in an android app.
I have a table in SQLite database of Android which has a column RANK
I'm making Android app that has this database in it: public void onCreate(SQLiteDatabase db)
I have android app that talks to server and syncs some data int SQLite
I have a small app that periodically needs a table row added to the
I have a relatively small Table in a SQL database in my Android app
I have an android app, that connectos to the remote database with PHP+json but

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.