title: Can you detect when Android App goes into background?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4414171/how-to-detect-when-an-android-app-goes-to-the-background-and-come-back-to-the-fo">How to detect when an Android app goes to the background and come back to the foreground</a>  </p>
  </blockquote>
  
  
  
  <p>An Android app can have lots of actvities. I don't want to know when any old activity goes into the background, I want to know when <strong>any</strong> activity in the application goes into the background, and when <strong>any</strong> activity in the app comes into the foreground.</p>
  
  <p>Do I have to handle onpause/onresume for each activity? Is there any easier way to do this?</p>