Click "Exit" button through our Application It need to go Phones's Home page & remove SharedPreferences also
<p>My question is when I click the "Exit" button through our application It need to go to Phones's Home screen.I have Tried like this</p>

<pre><code>  public void onExitAction(View botton){
          // finish();
          // super.finish();
           // System.runFinalizersOnExit(true)

            //android.os.Process.killProcess(android.os.Process.myPid());

     System.exit(0);

}
</code></pre>

<p>Not working.</p>

<p>When I put <code>finish()</code> its closing that particular activity &amp; its go to previous screen.</p>

<p>seconds one is When we exit the system need to remove <code>SharedPreferences</code> also?</p>

<p>Please help me on this...</p>

<p>Thanks in advance</p>
