I need to deliver a new version of my app but have the following problem:
Until now, I used a feature allowing users to save images on the SD card, in a specific folder.
In my new version, I changed the code to save the images in the folder targeted by the method getExternalFilesDir()
.
Because of this, I need to move all the images from the previous location to the new one on all the current installations.
How to handle this? I know how to do it for database changes, but how to manage this during an app update?
Basically I would need a simple check like this:
if(previousVersion < 15) {
moveFiles();
}
An other way would be to know if the user is doing a new install or an update:
if(newUpdate){
moveFiles();
}
Thank you!