Trying to start a second activity
<p>I am new to Android and I am not sure this is the best way to do this. Here is what im trying to do.
In Java im trying to have the initial Activity "Canvas1Activity" set the content view to an instance of another class I have setup "drawCanvas", drawcanvas  has an ontouchevent which depending on where the screen is touched starts another activity. I had to add canvas to the drawcanvas constructor Parameter list to get the Intent to work within the onTouchEvent, But now the setConTentView(MyView); gives the error: <strong>The method setContentView(int) in the type Activity is not applicable for the arguments (drawCanvas)</strong></p>

<p>Here is the main Activity
    package com.oftheseends.canvas1;</p>

<pre><code>import android.app.Activity;
import android.graphics.Bitmap;
import android.os.Bundle;

public class Canvas1Activity extends Activity {
    /** Called when the activity is first created. */
    drawCanvas myView;
    int mx;
    int my;

    Bitmap icon1;
    drawCanvas2 newview;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        myView = new drawCanvas(this, null);
        setContentView(myView);
    }
}
</code></pre>

<p>drawcanvas Class</p>

<pre><code>package com.oftheseends.canvas1;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.view.MotionEvent;
import android.view.SurfaceView;
import android.view.View;

public class drawCanvas  extends Activity  {

    Bitmap icon1;
    Bitmap icondrawcanvas;
    int mx; 
    int my;

    public drawCanvas(Context context, Canvas canvas) {
        super();
        icondrawcanvas = BitmapFactory.decodeResource(getResources(), R.drawable.backgroundblocks);
        canvas.drawBitmap(icondrawcanvas, 0, 0, null);

    }


     public boolean onTouchEvent(MotionEvent event) {

            mx = (int) event.getX();
            my = (int) event.getY();



       if (my &lt;=240) {
                    Intent canvas2Intent = new Intent("com.oftheseends.canvas5.DRAWCANVAS2"); 
                        startActivity(canvas2Intent); 
}else if(my &gt;240 ){
                    Intent canvas2Intent = new Intent("com.oftheseends.canvas5.DRAWCANVAS3"); 
                        startActivity(canvas2Intent); 
}
    return false;
}
}
</code></pre>

<p>Thanks for Any suggestions.</p>
