Android SharedPreferences Tutorial and Example

Blog

  1. Accessing Google Maps API for location services in AndroidAndroid location features combine two related services: the Maps SDK for Android renders interactive maps, while the Fused Location Provider uses GPS, Wi-Fi,…
  2. Build a simple Android chat app with WebSocketsA chat screen feels instant because the server can push each new message to connected phones as it arrives. This Android tutorial builds that flow with Kotlin,…
  3. WebSockets for real-time Android appsWebSockets create a persistent, bidirectional connection between an Android app and a server. The client can send events without opening another HTTP request,…
  4. Multipart file uploads from AndroidAndroid applications regularly send user-selected files to a backend, including profile images, receipts, evidence, and signed documents. HTTP multipart…
  5. Build an Android REST client with OkHttpImplementing a REST client with OkHttp in Android gives an app a lightweight, mature HTTP engine. It manages connection pooling, timeouts, request cancellation…
  6. Parsing JSON Data With Gson in AndroidAndroid applications commonly receive JSON from REST APIs, background services, and local data files. Gson converts these responses into Kotlin or Java model…
  7. Making HTTP requests with Retrofit in AndroidMaking HTTP requests with Retrofit in Android is a practical way to connect an app to a REST API. Retrofit turns an HTTP endpoint into a typed Kotlin method,…
  8. Migrating an Android SQLite Database to Room Without Data LossAndroid applications often keep records in a local SQLite database, especially when data must remain available without a network connection. A legacy…
  9. Using ProGuard for Android Code ObfuscationProGuard analyses compiled Android classes, then renames them and can remove code that appears unused. This obfuscation makes casual reverse engineering harder…
  10. Optimising app performance with LeakCanaryMemory leaks can make an Android app feel slow long before it crashes. A screen may disappear from view while its Activity, Fragment, adapter, bitmap, or…