how to exit android application from exit button?
<p>I am finding the way to exit android application to home screen(android phone).</p>

<p>My code is not completely exit application but it turn to the root activity of application.</p>

<h1>Here is my code</h1>

<pre><code>//Expression
    Button exit = (Button) findViewById(R.id.exit);
    exit.setOnClickListener(new OnClickListener()
    {
        @Override
        public void onClick(View v)
        {
            // TODO Auto-generated method stub
            finish();
            System.exit(0);
        }
    });
</code></pre>

<p>Can you tell me how to exit application and go to home screen of android phone?</p>

<p>Regards,</p>
