title: How to detect if app has been "minimized" by home button or hidden behind another activity
body: <p>I want to do a certain thing in my activity's fragment's onresume, but only if Back button has been pressed, and not if the app has been hidden behind another activity or "minimized" using "home" button/</p>
  
  <p>How can I do that</p>