Unusual Android error
<p>I have an Activity that uses a ListView to simply display a list of options for a user to select and when they select an option they are taken to a new Activity.</p>

<p>However on occasion the Activity with the options freezes when I try to select one of the options, I get the ANR and in the log cat the following error is displayed: </p>

<pre><code>java.lang.RuntimeException: Performing pause of activity that is not resumed:&lt;Activity&gt;
</code></pre>

<p>Does anyone know what this error means and how to diagnose it?</p>

<p>A search brings up very little.</p>

<p>Does anyone know what may be causing the error?</p>

<p>I can post the code on request</p>

<p><strong>Code as requested:</strong></p>

<pre><code>lvMenu.setOnItemClickListener(new OnItemClickListener() {
        @Override
        public void onItemClick(AdapterView&lt;?&gt; a, View v, int position, long id) {

            switch(position){

            case 0:
                Intent intent = new Intent(this, SettingsApp.class);
                startActivity(intent);
                break;

            case 1:
                Intent intentHO = new Intent(.this, SettingsHO.class);
                startActivity(intentHO);
                break;
            case 2:
                Intent intentWifi = new Intent(this, Settings.class);
                startActivity(intentWifi);
                break;
            case 3:
                Intent intentAudio = new Intent(this, SettingsAudio.class);
                startActivity(intentAudio);
                break;
            case 4:
                Intent intentDiagnostics = new Intent(this, PhoneStatus.class);
                startActivity(intentDiagnostics);

            }

        }
        });
</code></pre>
