详情:
/data/data/package_name/databases/dday-db
/data/data/package_name/databases/dday-db-shm
/data/data/package_name/databases/dday-db-wal
介绍:shm 和 wal
The Android implementation for a SQLite database is normally in WAL (write-ahead log) mode. This uses 3 files in the background: The first with the name of your database (i.e. my_db, the second one with that name and the “-shm” suffix (my_db-shm) and the third one with the “-wal” suffix (my_db-wal). The -wal file will save changes.
解决方案:
一:对数据库进行关闭再打开,会自动删除文件
二:在打开数据库的时候,关闭write-ahead log mode
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)