singularity

Chapter 7: Data Persistence

7.1 Introduction to Data Persistence

7.2 Persisting Through File

7.2.1 Persisting Data in File

7.2.2 Read Data from File

7.3 SharedPreferences

7.3.1 Save Data in SharedPreferences

7.3.2 Read Data from SharedPreferences

7.3.3 Implement Remembering Password

7.4 SQLite Database

7.4.1 Create Database

7.4.2 Upgrade Database

7.4.3 Add Data

7.4.4 Update Data

7.4.5 Delete Data

7.4.6 Query Data

7.4.7 Use SQL

7.5 SQLite Database Best Practice

7.5.1 Transaction

7.5.2 Best Practice to Upgrade Database

7.6 Kotlin Class: Application of Higher-Order Function

7.6.1 Simplify Use of SharedPreferences

7.6.2 Simplify Use of ContentValues

7.7 Summary and Comment