Killing process in onPause()
<p>I want to kill my Activity process when I pause it by answering a call or something like that
but when i try to start my app it closes instantly. Any solutions? Sample code below</p>

<pre><code>@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);      

    //Things to do
}

//@Override
public void onPause() {      
    super.onPause();
    android.os.Process.killProcess(android.os.Process.myPid());
}  
</code></pre>
