I'm saving pictures related to my app inside External files directory so In Gallery app Device Folder can't access those photos. but when I update app it removes the all data in the following directory.
/storage/emulated/0/Android/data/AppPackage/files
Got this path by the following line of code.
mContext.getExternalFilesDir(null)
Is there any way to stop this folder get removed on app update?
On app Uninstall can I show a warning dialog to user about data get deleted?