Android SharedPreferences Tutorial and Example

Blog

  1. Using AndroidX Test for reliable instrumented Android appsInstrumented tests run on a real Android device or emulator, allowing your application to interact with framework APIs, activities, services, databases and the…
  2. Testing an Android screen with JUnit and EspressoA basic UI test checks whether a real Android screen behaves as expected when a user taps, types, or selects something. JUnit provides the test structure and…
  3. How to Generate a Signed APK and Upload It to Google PlayA signed Android build is required before an application can be distributed outside Android Studio. The signing process proves that an app came from a trusted…
  4. Deep linking: opening an Android app from a URLDeep linking lets an Android application respond when someone taps a web address. Instead of opening a generic home screen in Chrome, the operating system can…
  5. Handling back navigation with the Navigation ComponentBack navigation is a core part of Android application development, but it becomes more complex when an app contains several fragments, nested flows, dialogs,…
  6. Using Coroutines For Asynchronous Android AppsModern Android applications constantly perform work away from the main thread. They fetch data from an API, read a SQLite database, resize images, process…
  7. Building a Chat App with Firebase Cloud FirestoreFirestore is a NoSQL document database that stores records as documents inside collections. Android apps can subscribe to a collection and receive updates as…
  8. Building Video Streaming Features with ExoPlayer in Android AppsExoPlayer has become the default media playback library for Android developers who need to stream video reliably across devices and network conditions. Unlike…
  9. Implementing pagination in RecyclerView from APIRecyclerView renders only the rows attached to its window, so a large API response does not need to become one giant in-memory list. Loading every record…
  10. Using Android architecture components with MVVMA practical MVVM design uses Android architecture components to divide an app among its user interface, retained state, and data sources. Screens can react to…