Android implements raw folder import database code

There is such an interview question:

How to publish SQLite database (dictionary. DB file) together with APK file?

A: just put this file in the / RES / raw directory. The files in the res \ raw directory will not be compressed, so you can directly extract the files in the directory and generate the resource ID.

So how to import the database under the raw file into the database directory of the installed program?

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>