I am developing a content provider that stores its data in a SQLite database. During development, I need to change the schema or completely delete the database and restore it (I do not update the database at this stage of development).
I found a database file stored in / data / data // databases / app _db. When I pull it onto my desktop computer, I can use SqliteSpy to see its contents, and all is well. However, when I delete it, it is not always deleted really. Although I do not see the file in DDMS or ADB, my application still sees it.
I tried to make sure my application and service are not working when I delete the file, but it does not seem to help. In about half the cases, I delete the file, I need to restart the emulator so that it has an effect.
What can prevent file deletion?
Itay.
source
share