I am working on a use case where if the user presses on the home button, a different activity should be shown in the recents list. I don't want to see the activity which user is seeing when he/she presses the home button or recents button.
I am trying to intercept the onPause( ) method for this. If we try to start a different activity in the onPause() method, it would show that activity on the screen and would violate the home button use case.
Can someone please let me know if it is possible to do this?
Thanks in advance.