Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Adding SQLite file to the apps bundle

$
0
0

Hi,

I am currently using an SQLite db file throughout my app which works fine. However, every example that I see whether it is in the sample on the xamarin developer documentation or in questions posted by other user, the file is always told to be stored in:

    Environment.SpecialFolder.Personal

However, this saves the file in the root of the device storage. I want to be able to save it in the bundle of the app so that if the user deletes the app, it will delete the database file as well. Currently, because the file is saved in the root of the device storage, if I uninstall the app, the file still exists. Has anyone managed to achieve anything like this?

Thanks.


Viewing all articles
Browse latest Browse all 91519

Trending Articles