0
How can I save the data in sqlite file when uninstall an app?
I have an database file made by Sqlite Studio and use it in an android app. When I uninstall app, the data I insert into database by using app was deleted, but the data in initial sqlite file still have. When I insert into database it not appear in sqlite file but when I select it still have.
1 Resposta
0
one solution is to provide an import and export function for your database.
export to an external folder that does not get deleted when you Uninstall the app
, or to a cloud storage provider.
another may be, save the data outside of the app install folder, outside of(/sdcard/Android/data/com.xxxxx.xxz) or (/data/data/com.xxxx.xxxx) although from Android 11 getting permission for external folders is getting complicated.