Delete database

  • Replies:1
  • OpenNot stickiedUnanswered
  • Forum posts: 9

Feb 2, 2019, 5:09:03 PM via Website

I am developing an android app using sqlite database. I would like to know the exact path where the database file is stored so that I can delete it and add a new column to the table. The app namespace is like com.example.sct.myapp.

Reply
  • Forum posts: 1,272

Feb 3, 2019, 2:09:15 AM via Website

The exact path has something to do with your codes in the app project.

For example, if you have placed the original db file in the sub-folder 'res\raw' of your Eclipse project, you may extract it with 'getResources().openRawResource()' and then create it in some folder such as '/data/data/packageName/databases/' on app creating.

Download size < 0.07 MB. But also Accurate, Ad-Free & Full-Free.
The minimalist app available on Google Play https://goo.gl/ws42fN
Your 5-star is appreciated. Blog : https://okblackcafe.blogspot.com

Helpful?
Reply
Recommended articles