This example project explores the different methods to persist data internally for application states. There are 2 main ways to persist data:
SharedPreferencesa key-value pair storage for storing primitive typesSqlitea local SQL database.
Both of these methods however, do not retain data after the application is uninstalled.
In addition to data storage, we will look at 3 material UI components that is essential in modern applications.
- Snack bar. Essentially a toast with an action button.
- Floating Action Button. A button that displays itself on the bottom left corner of the screen
- DialogFragment. A popup dialog with input forms for us to key in data to store into SQLite database