Killing The Application In Android
<p>I have an application which shows a notification in the status bar for users to click to get resumed into the activity.</p>

<p>In the application, I will also have a close application button which runs:</p>

<pre><code>android.os.Process.killProcess(android.os.Process.myPid());
</code></pre>

<p>When I click the close app button, the app will get killed as long as I didn't enter the app through clicking on the notification.</p>

<p>If I have entered the app by clicking on the application, the application will "blink" for a second and a new copy is shown. I suppose a new copy is shown.</p>

<p>Do anyone happen to know what's causing this?</p>
