ListView onListItemClick setcontentview crash?
<p>I have been trying to set a new xml layout, when a particular item on this list is clicked. 
Am I missing something, because the emulator crashes when clicked?! setContentViewById(R.id.newxml file)</p>

<pre><code>public class intentProject extends ListActivity 
{

 ListView list;
 ArrayAdapter&lt;String&gt; aa;
 List&lt;String&gt; data = new ArrayList&lt;String&gt;();

 public void onCreate(Bundle savedInstanceState)
 {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
  data.add("France");
  data.add("Japan");
  data.add("Russia ");
  data.add("Poland");
  data.add(" USA");

  ArrayAdapter&lt;String&gt; aa = new ArrayAdapter&lt;String&gt;(this,android.R.layout.simple_list_item_1,data
  );
  setListAdapter(aa);
 }
 protected void onListItemClick(ListView l, View v, int position, long id) 
 {
  // TODO Auto-generated method stub 
  super.onListItemClick(l, v, position, id);
  this.setContentView(R.layout.main2);
 }

}
</code></pre>
