When HOME button is pressed, this is the flow:
onUserLeaveHint()
onPause()
onSavedInstanceState()
onStop()
When transitioning from Activity A to Activity B, this is the flow:
onUserLeaveHint() (of Activity A)
onPause() (of Activity A)
onApplyThemeResource (of Activity B)
onCreate (of Activity B)
onStart (of Activity B)
onResume (of Activity B)
onSavedInstanceState() (of Activity A)
onStop() (of Activity A)
You need to understand there is no official way to listen to HOME button taps. There are few workaround solutions which seems to work for most of the case but not a 100% concrete solution. What you can do is, use one of the solution to listen to HOME press and turn on a flag. Then use this flag value to differentiate if its a HOME press or Activity change.
Check this for code example:
Detect home button press in android