What happens to a Sqlite database when app is removed

前端 未结 5 1741
执念已碎
执念已碎 2020-12-15 07:11

I\'m new to Android programming and trying to wrap my head around this just to make myself clear about how things work.

When creating Sqlite databases in an Android

5条回答
  •  借酒劲吻你
    2020-12-15 07:37

    SQlite databases are just files, and they're treated like any other file: they're stored (by default) in the application's private data area (/data/data/$PACKAGENAME/databases). They're deleted along with everything else in the application's private data area.

    You can create a database on the SD card if you like. They, of course, won't be removed on uninstallation.

提交回复
热议问题