public class AndroidTest extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
MyView mv = new MyView(this); setContentView(mv); }
public class MyView extends View { MyView(Context context) { super(context); }