public void onCreate(Bundle saved)
{
super.onCreate(saved);
ScrollView scroll = new ScrollView(this);
LinearLayout layout = new LinearLayout(this);
layout.setOrientation(LinearLayout.VERTICAL);
scroll.addView(layout);
Button close = new Button(this);
close.setText("Close");
close.setOnClickListener(this);
close.setGravity(Gravity.CENTER);