title: Super Activity controller which can control the overall app
body: <p>Recently I was developing an app that plays a music playing in the background all through the app. And the music should pause whenever it goes to background or the screen gets locked. For that, I had to handle write an <code>onPause()</code> and an <code>onResume()</code> in every activity for the music to pause when it goes to background and to resume when it back to the main view. I was wondering is there was a way where the android life cycle can be controlled from one <strong>Super Activity</strong> do that I don't need to use onPause and onResume in every activity.</p>