Android SharedPreferences Tutorial and Example

Blog

  1. Communicating between fragments with interface in AndroidThe Android framework gives developers a powerful way to compose screens using fragments, but the moment two fragments need to share data, things get tricky.…
  2. Fragment Lifecycle: onAttach to onDetachA Fragment is a reusable portion of an Android screen, but it is not a miniature Activity. Its lifecycle is controlled by both the FragmentManager and the…
  3. Create an Android navigation drawer with fragmentsA navigation drawer gives an Android app a compact way to expose several destinations without crowding the main screen. When the user taps the menu icon, a…
  4. Using Facebook Login for Android AuthenticationFacebook Login gives an Android app a familiar sign-in option without requiring users to create another password. The flow uses Meta’s identity platform to…
  5. Implementing Google Sign-In in an Android App With KotlinGoogle Sign-In gives Android users a familiar way to access an app without creating another password. A well-designed integration can authenticate a Google…
  6. Authenticating Android users with Firebase email and passwordFirebase Authentication gives an Android app a reliable way to register, sign in, sign out and restore user sessions without building a password database from…
  7. Reading and Writing Data to Firebase Firestore in AndroidCloud databases make it easier for an Android app to store information beyond the device. Firebase Cloud Firestore is a document-based database that supports…
  8. Setting up Firebase Realtime Database in AndroidFirebase Realtime Database gives an Android app a cloud-hosted JSON store that synchronises data almost instantly. It suits practical projects such as chat…
  9. Sending Push Notifications with Firebase Cloud Messaging on AndroidFirebase Cloud Messaging has become the backbone of mobile alerting for Android apps, replacing the older Google Cloud Messaging service that many developers…
  10. Recording Audio with MediaRecorder in AndroidAudio capture looks deceptively easy in Android until you wire up your first recording button. MediaRecorder handles microphone input, encoding, and file…