application shutdown for unknown reason
<p>Emulator shuts down when I press anything in the listview, and I don't know why :/
here's my code.</p>

<pre><code>package item.list.lol;

import android.app.ListActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.ListView;

public class Menu extends ListActivity {

    String classes[] = {"klass1", "klass2"};
    public final int[] imgDisplay = new int[]{R.drawable.randomIMG,R.drawable.randomIMG};


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        setListAdapter(new ArrayAdapter&lt;String&gt;(Menu.this, android.R.layout.simple_list_item_1, classes));  
    }

    @Override
    protected void onListItemClick(ListView l, View v, int position, long id) {
        // TODO Auto-generated method stub
        super.onListItemClick(l, v, position, id);
        String pointer = classes[position];
        setContentView(R.layout.main);
        ImageView image = (ImageView) findViewById(R.id.imageView1);
        image.setImageResource(imgDisplay[pointer]);

    }
}
</code></pre>

<p>What I want it to do:</p>

<ol>
<li>I press an item in the list > String pointer gets value from position.</li>
<li>set the contentview to main and imageview to my imageView1.</li>
<li>setting the imageresource to an item in the imageDisplay equal to what the pointer is aKa what I item from the list I chose.</li>
</ol>

<p>What happens in emulator:</p>

<p>App starts, I see my list currently with 2 items in (klass1 and klass2). when I press either of them the application shuts down and I get some error message. Please help me out here I've been working on different solutions for ages and can't seem to find one.</p>
