finish an activity gives error
<p>I am a beginner at Android programming and I have a little problem when closing an activity:
When I enter my app I navigate to another Activity called <em>"camp"</em>, and I want to close the Activity when I come back to the menu screen, so I wrote this:</p>

<pre><code>public void onPause(){
    CampActivity.this.finish();
}
</code></pre>

<p>but when I press the back button I get an error telling me that the application was closed.</p>

<p>What should I do so it will work? </p>
