Why it is taking some time to call the next activity after pressing back button?
<p>Can any one suggest me why specifically for a single activity where i have implement the Camera API to draw some graph, the back button of my device is working too late. It is not calling the next activity immediately when i am pressing back button.  This is what my back() looking like:</p>

<pre><code>@Override
    public void onBackPressed() {
        // TODO Auto-generated method stub
        super.onBackPressed();
        mp.release();   
        Canvas.freeGlCaches();
        mCamera.stopPreview();
        timer.cancel();
        heart_Anim.stop();
        //Calling Home Page
        Intent i=new Intent(Graph.this,Home.class);
        i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
        startActivity(i);
        finish();
    }
</code></pre>
