Android Architecture Components: ProcessLifecycleOwner
How to know my app is in foreground/background? I see SO has a lot of question and answers about that. Actually I didn’t face any specific problem about doing something when your app is foreground or background, but I know lots of…