1. Are you ready for the Galaxy S20? Here is everything we know so far!

How to add new columns in sqlite database

Discussion in 'Android Lounge' started by Praful Wadkar, Jan 29, 2020.

  1. Praful Wadkar

    Praful Wadkar Lurker
    Thread Starter

    hi,
    i am new to android and created an app.
    i have a sqlite database, i want to add some columns when user updates app.
    i am getting something like OnUpgrade event but don't how to call it and where to set oldversion and newversion values.

    Please help me to do this.
     



    1. Download the Forums for Android™ app!


      Download

       
  2. MoodyBlues

    MoodyBlues Compassion is cool!
    VIP Member

    Welcome to Android Forums, Praful Wadkar!
    You're most likely to get help with this by posting on our Android Development board. :)
     
Loading...
Similar Threads - add columns sqlite
  1. RennSter20
    Replies:
    3
    Views:
    324
  2. Alithir Elements
    Replies:
    0
    Views:
    455
  3. tinker123
    Replies:
    5
    Views:
    477
  4. tinker123
    Replies:
    0
    Views:
    331
  5. FlipperTime
    Replies:
    0
    Views:
    451
  6. swiatmar
    Replies:
    0
    Views:
    335
  7. jmmartins
    Replies:
    0
    Views:
    516
  8. midsms
    Replies:
    2
    Views:
    1,524
  9. Gobshyte
    Replies:
    1
    Views:
    407
  10. Google_is_the_Higgs_Boson
    Replies:
    1
    Views:
    1,535

Share This Page

Loading...