How using SQLiteOpenHelper with database on sd-card?

后端 未结 6 814
渐次进展
渐次进展 2021-02-08 00:50

According to various answers here and in the web extending Application and it\'s inherited method getDatabasePath() would allow to set the database storage path from the standar

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-08 01:21

    Your database is kept in its internal memory so that other applications can't access it and change/corrupt data.

    The default path of the android database is /data/data/APPLICATIONPACKAGENAME/databases/ . The following is a pretty good guide on how to store your database in a file and then populate it at run time.

    Article

提交回复
热议问题