Hello All,
I want to delete my existing SQLite database file, before installing new apk file.
I have explore a lot I got #CustomBuildAction tag which we can use in Main Activity.
Will you please help me, how to use #CustomBuildAction to delete a specific file before APK install.
What I want to do, as I install first release of my App.
I made coding changes also made Database changes and made updated release.
While installing updated release I have to use new database, that's why want to delete old database file which is on SD card of Device.
When you run the program you can check if the file does exist and :
If yes :
- Either delete it and copy the new one from DirAssets.
- If you have a version in it, check the version and delete and copy the new one if needed.
If no: Copy the file.