Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Sqlite database file path consideration

I need to store sqlite database, where should the file be stored?

Below is two options with limitation I have

1 /data/data/com.myapp/files/My.sqlite
I cannot copy the database out of the device to Windows. It requires debuggable APK, which is not possible for production.

run-as com.myapp sh -c "cat /data/data/com.myapp/files/My.sqlite" > /sdcard/My.sqlite

2 /sdcard/com.myapp/My.sqlite
I can copy via USB, but what are the disadvantages?

Best Answer

Answers

Sign In or Register to comment.