Resuming to the main activity
<p>I am currently developing an Android 2.2 application that needs to resume to the main activity from another one.</p>

<p>I am using this code:</p>

<pre><code>private void btnAbort_OnClick(View v) 
    {
        startActivity(new Intent(v.getContext(), Main.class));
        finish();
    }
</code></pre>

<p>but when I call the method (by clicking a button) I get the following error:</p>

<p>02-02 20:05:19.117: E/dalvikvm(864): Unable to open stack trace file '/data/anr/traces.txt': Permission denied</p>

<p>What is going wrong here?</p>

<p>Edit:
Manifest code:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="eu.game"
    android:versionCode="1"
    android:versionName="1.0" &gt;

    &lt;uses-sdk android:minSdkVersion="7" /&gt;

    &lt;application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" &gt;
        &lt;activity
            android:name=".Main"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.NoTitleBar"&gt;
            &lt;intent-filter&gt;
                &lt;action android:name="android.intent.action.MAIN" /&gt;

                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;
        &lt;activity 
            android:name=".SingleplayerActivity"
            android:theme="@android:style/Theme.NoTitleBar"&gt;
            &lt;intent-filter&gt;
                &lt;action android:name="eu.game.SINGLEPLAYERACTIVITY" /&gt;
                &lt;category android:name="android.intent.category.DEFAULT" /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;
    &lt;/application&gt;

&lt;/manifest&gt;
</code></pre>
