How to change the Activity when app is moved to background and then again when it is resumed?
my goal is to make my Password Manager app's current visible activity (e.g. MainMenuActivity) change to EmptyScreenActivity when app is paused (so nobody can see the passwords when the app is in background) and then run LoginScreenActivity when the app is resumed for user to log back in. I used
this code by vokilam to implement LifecycleObserver and it works pretty well but I'm stuck because there is no option to pass the Intent to...