This sample app, demonstrates the new ProcessLifecycleOwner from Google. Accompanying "blog post": https://medium.com/@Gryzor/detecting-when-an-android-app-backgrounds-in-2018-4b5a94977d5c
- Android Studio 3.1.0 and:
- ext.kotlin_version = '1.2.30'
- ext.lifecycle_version = '1.1.1'
- ext.constraintlayout_version = '1.0.2'
- ext.appcompatv7_version = '27.1.0'