Delete database file from data folder
I want to delete a file in assets folder at runtime. I have a database file in the assets folder that is copied to the data folder at runtime, but after installing my app, the size of the application becomes twice as large (assets + data folder)!
How can I remove the database file from the assets folder to avoid this?
+3
source to share
2 answers
You cannot delete a file at runtime that was delivered with your application.
Take a look at this discussion:
How do I delete a file in assets at runtime?
All content in your APK is read-only and cannot be changed
+14
source to share