Android : How to determing home key is pressed
<p>How do I determine if the Home key is pressed? If it's pressed I want to do some handling and finish the activity since I don't want it to resume next time it's started. I can't handle it in <code>onStop</code>, since from the activity I start another activity(so <code>onStop</code> will get called even in this case).</p>
