Exit Android App - Kill all processes
<p>We have a live video streaming app with a lot going on.  A user presses the home button. I want the app to be removed from memory.  When the app is selected again we have a brand new load.  There are a lot of processes going on and we don't want to have to manually manage all the connections, streams, etc.  This is how our iPhone version of the app works.</p>

<p>I've read this:  <a href="http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon/2034238">Quitting an application - is that frowned upon?</a></p>

<p>I don't really care about Androids design patterns here either way. However if someone has an elegant, simple way that all my activities will be removed from the stack when the home button is pressed, and then when the app is reloaded it starts with a fresh main activity, that would be great. Also, I can't seem to ever debug when the home key is pressed in onKeyDown.  Its simply not registering.  (keyCode == KeyEvent.KEYCODE_HOME) is my check. It picks up back buttons, etc.</p>

<p>Any thoughts?</p>
