Android Question how to prevent sqlite from deleted

Endien

Member
Licensed User
Longtime User
Hi all,

I have create android app that put sqlite file on sd card.
And i notice when i uninstall the app, the sqlite file will be deleted too.
As far as i know this is the default android behaviour.
When unistall, all files related to the app will be deleted whether its on internal or external storage. (correct me if i am wrong)

My question is, can we prevent the sqlite file being deleted when the app got uninstall?
 

Endien

Member
Licensed User
Longtime User
You could install it in DirRootExternal (a subfolder should be better; but, of course, then it will be available directly to the user)

Thanks for the reply LucaMs. Yes, i think it will do.

but, of course, then it will be available directly to the user

Thats why i encrypt the database
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…