Delete database

  • Replies:1
Suresh Kumar
  • 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
James Watson
  • Forum posts: 1,584

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.15 MB. But also accurate enough, ad-free & free.
The minimalist app available on Play Store: https://goo.gl/ws42fN
Blog: https://okblackcafe.blogspot.com Your 5-star is appreciated.

Helpful?
Reply