Displaying 1 to 2 from 2 results

OfflineSampleApp - Sample Offline-First MVVM app that uses Android Priority Job Queue, Room, Retrofit2, LiveData, LifecycleObserver, RxJava2, Dagger Android

  •    Java

Offline App (or Offline-First App) enables user to seamlessly interact with it by using local device storage and then synchronizing the data with some remote storage (cloud database, etc) later via a background process. This app is a working sample that showcases one way of implementing offline commenting capability on Android platform. Users' comments are stored in local Room database first. Then a background job is spawned to synchronize local data with remote database if and when Internet connection is available.

AppLifecycleDemo - Uses ProcessLifecycleOwner to react to app coming to foreground and going to background

  •    Kotlin

This project demonstrates using the new ProcessLifecycleOwner (bundled with Lifecycle Architecture Components) to react to foreground and background events. ProcessLifecycleOwner provides lifecycle for the whole application process. For more details, see my post on Medium.