Android: How i can catch home button press
<p>I am developing an application for music. I have an <code>Activity</code> where I have a list with tracks. I can select a track and then I move to another activity in order to play the selected track. I also have a <code>Service</code> class and when I press the home button, I want it to start the service (play music in the background) and move to the home screen.</p>

<p>Also, I have the method <code>OnBackPressed()</code> in order to move to the previous <code>Activity</code>.</p>

<p>How, I can intercept the home button press? Thanks, for yours answers.</p>
