package com.mycompany.myapp; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.content.Context; import android.graphics.Canvas; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.view.MotionEvent; public class MainActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); GraphicsView myview=new Graphics(this); setContentView(myview); } }