Android Fundamentals #9: Persistency
Date and time
Description
Hackathon is near but more on that later.
You always need to store data, but there are many questions for the developer about that.
We will talk about data storage.
There are several ways to store data in Android, but what we need to choose?
How to save application settings?
How to create a database? How to write files to disk and read?
Together with you, we will find out all the answers to these questions.
-
Activity lifecycle revisited
-
Deep dive into the Activity lifecycle
-
Handling configurations changes
-
Introduction to file I/O
-
Introduction to SharedPreferences
-
Accessing default SharedPreferences
-
Saving/retrieving data
-
commit() vs apply()
-
SQLite
-
SQL basics
-
SELECT, FROM, WHERE
-
CRUD
-
SQLiteOpenHelper
-
Explanations & code snippets
-
Create DB
-
Creating tables
-
Insert data (basic)
-
ContentValues
-
Read data (basic)
-
Query
-
Delete data
-
Update Data
-
Introduction to Room
-
Concept
-
@Database
-
@Entity
-
@Dao
-
Inserting data - deep dive
-
Querying data - deep dive
-
Delete data - deep dive
-
Update data - deep dive
-
ViewModel get data from a database