Flashcard Deck · 54 cards · Public

FIT5046 - Week 5: Navigation, Material 3, and Data Persistence

Cards in this deck

(54 cards)

Preview terms and definitions before starting your study session.

#1
Term
What happens to ViewModel state when the user rotates the device screen during navigation?
Definition
The ViewModel retains its state and data across the configuration change.
#2
Term
What is SharedPreferences in Android?
Definition
A lightweight key-value storage system for saving simple data types to an XML file on the device.
#3
Term
What primitive data types can be stored inside SharedPreferences?
Definition
String, Int, Boolean, Float, and Long.
#4
Term
How do you obtain an instance of SharedPreferences in Android?
Definition
context.getSharedPreferences(PrefsName, Context.MODE_PRIVATE)
#5
Term
How do you write data into SharedPreferences using Kotlin extension functions?
Definition
Call prefs.edit { putString(key, value) }
#6
Term
How do you read a String value from SharedPreferences?
Definition
prefs.getString(key, default_value)
#7
Term
Is SharedPreferences intended for managing temporary UI state or inter-screen data sharing?
Definition
No, it is designed for persistent user preferences, not temporary UI state.
#8
Term
What is Material 3 (M3) Expressive?
Definition
An evolution of Material 3 focusing on personal styles and tactics for creating emotionally impactful UX.
Showing 8 of 54 cards in this deck.
Study All Now