Read & Write Typed Values
Persist booleans, strings and ints safely.
Typed, Not Stringly
Settings stores more than strings. It has dedicated methods for each basic type, so you keep your data typed and safe. 🧩
Write a String
Use putString to save text under a key. The key is just a label you'll use to read it back later.
settings.putString("username", "ada")All lessons in this course
- Why a Settings Abstraction
- Read & Write Typed Values
- Defaults & Clearing Keys
- Store an Auth Token Securely