简体   繁体   中英

Android SQLite DB location

Is it possible to store my applications SQLite database in some other location that I define instead of the default /data/data//databases location?

Thanks

This might be helpful. It demonstrates how to store a db in the assets folder of your app, (though all it does is copy over the db to a /data/databases database, so I'm not sure if that will help your situation.)

Could you give a little more context as to why you want to store your database elsewhere?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM