CS5520-Week7-Data-Storage
Week 7 Data Storage and Retrieval Module
Strict Mode, SQLite
Strict Mode
It is a mode to help find problems in code where things on the main thread works not as expected. This includes dis access, database access or network access.
其实就是进入一个log模式来输出详细的log
SQLite
![Untitled 1](/posts/CS5520-Week7/Untitled 1.png)
![Untitled 2](/posts/CS5520-Week7/Untitled 2.png)
SQLite with ADB (Android Debug Bridge)
- Select a virtial devices that not play store support
- 不然不能使用super user (su)
1 | adb -e shell (-e 是emulator) |
SQLite with Device File Explorer
Android Studio → View → Tool Windows → Device File Explorer
先下载到本地然后使用其他的工具打开 (有必要吗?晕了)
Android Room Persistence Library
The Android Room Persistence Library provides a high level interface on top of SQLite. It is worth using SQLite directly so that you get an understanding of what is underneath it all before you begin using the high level interface.