How to prevent Android application from loading multiple times?
<p>This must be an easy one but I'm not having much luck searching for an answer.
Apologies if this is a regular question.</p>

<p>If I navigate away from my app I cannot return to it. Starting the app again will load a second instance of it rather than returning to it. If I leave an audio loop running in my app, It's hard to get back in and turn it off.</p>

<p>On startup I'd like the app to destroy any previous instance of itself left running.</p>

<p>I'd also like to try having the app shut itself down when I navigate away (I know it's not the right way to do things but I'd like to try this for my own personal use of the app). Or have the "back" button destroy the app.</p>

<p>Thanks.</p>
