Creating Android CheckBox programmatically

MainActivity.java

package com.mycompany.myapp;

import android.app.*;
import android.os.*;
import android.widget.*;

public class MainActivity extends Activity 
{
    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
		
		LinearLayout myLinear = new LinearLayout(MainActivity.this);

		final CheckBox myCheck = new CheckBox(this);
		myCheck.setText("Click here ..");
		myCheck.setTextSize(23);
		myCheck.setChecked(false);

		myLinear.addView(myCheck);
		
		setContentView(myLinear);
	}
}