The demo for answer here https://stackoverflow.com/a/66717656/5381331
PhanVanLinh/AndroidDetectAppFromBackgroundToForeground
An example to detect app from background to foreground in Activity (or any class) using ProcessLifecycleOwner
Kotlin
An example to detect app from background to foreground in Activity (or any class) using ProcessLifecycleOwner
Kotlin
The demo for answer here https://stackoverflow.com/a/66717656/5381331