Android super.setContentView() in a method causes error?
<p>Why would calling super.setContentView() </p>

<p>in a method cause the android process to terminate unexpectedly?
but when I remove it it works fine?</p>

<pre><code>package com.example.debuggingTest;

import android.app.Activity;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.*;



public class TestDebugingActivity extends Activity implements OnTouchListener {


/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.start);

    ImageView start = (ImageView)findViewById(R.id.imageView1);
    Button signin = (Button)findViewById(R.id.button1);
    signin.setOnTouchListener(this);
    start.setOnTouchListener(this);



  }

public boolean onTouch(View v, MotionEvent event) {
    // TODO Auto-generated method stub
    Button signin = (Button)findViewById(R.id.button1);
    Button register = (Button)findViewById(R.id.button2);


    register.setText(event.toString());
    signin.setText(String.valueOf(event.getPointerCount()));


    if(event.getPointerCount() &gt;= 3) {
        signin.setText("Working");

//
//THIS CAUSES THE ERROR
//
        super.setContentView(R.layout.linear);

    }

    return true;

}



}
</code></pre>
