title: Detect application close/minimalize
body: <p>first - sorry for my English.</p>
  
  <p>I just created Android app. It contains several activities and in the background of this application music is played. When user go out from app in some way (by click "back" button, home button, or in other way), then I need to stop play the music. The problem is to handle this moment. I don't know how.</p>
  
  <p>Please help me,
  CD</p>