Android SharedPreferences Tutorial and Example

Blog

  1. Creating a RecyclerView with a custom adapter and ViewHolderA RecyclerView is the standard Android component for displaying repeated content in a scrolling list. It is more flexible and efficient than the older…
  2. Building A Simple Login Screen With SharedPreferencesA login screen is a useful first Android project because it brings together layout design, input validation, button events and local data storage. For a small…
  3. Reading and Writing Complex Objects with SharedPreferences and GsonSharedPreferences is convenient for small Android settings, such as a dark-mode flag, selected language or notification preference. It stores primitive values,…
  4. Using SharedPreferences to Store User Preferences in AndroidAndroid applications often need to remember small choices between sessions. A user may select dark mode, enable notifications, choose a preferred language, or…
  5. Updating and deleting SQLite records in AndroidLocal SQLite storage is useful when an Android app needs to keep information available without a network connection. A shopping list, appointment tracker,…
  6. Querying SQLite Database with rawQuery and Cursor in AndroidSQLite is built into Android, making it a practical choice for storing structured data directly on a device. A local database can hold shopping lists, saved…
  7. Saving data in Android SQLite with ContentValuesPersistent storage is a cornerstone of modern Android applications. Whether you are capturing a customer's order at a Sydney café, recording a tradie's job…
  8. Create A SQLite Database In Android With SQLiteOpenHelperSQLite is a lightweight relational database included in Android, making it useful for storing structured information directly on a device. It works well for…