質問

I have db file in my resource ( for example in assets or raw )

1) I can access this db file with SQLiteOpenHelper?

2) And when my app check the new version if possible, downloading new db and copy the ( assets or raw ) folder

How do you think I should do?

Sory for my bad english and thank you much

役に立ちましたか?

解決

It is best that you move the file to either internal or external storage, simply because both R.raw and the assets folder are read only.

You will never be able to download an update to your database into raw or assets, so even if the first database can be read from there, all subsequent updates will have to be on more accessible storage.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top