super.onCreate(icicle);
Window wp = getWindow();
mContext = wp.getContext();
mParams = wp.getAttributes();
mLinearLayout = new LinearLayout(this);
mLinearLayout.setOrientation(LinearLayout.VERTICAL);
setContentView(mLinearLayout);
button = new Button(mContext);
button.setMinimumWidth(300);
button.setMinimumHeight(70);
button.setTextSize(14);
button.setText("Play sample");
button.setOnClickListener(buttonListener);
mLinearLayout.addView(button, new LinearLayout.LayoutParams(
ViewGroup.LayoutParams.WRAP_CONTENT,
ViewGroup.LayoutParams.WRAP_CONTENT));
button2 = new Button(mContext);
button2.setMinimumWidth(300);
button2.setMinimumHeight(70);
button2.setTextSize(14);
button2.setText("Play MIDI");
button2.setOnClickListener(buttonListener2);
mLinearLayout.addView(button2, new LinearLayout.LayoutParams(
ViewGroup.LayoutParams.WRAP_CONTENT,
ViewGroup.LayoutParams.WRAP_CONTENT));