How do I output to console when I click a button and why doesn't the text change when I click this button?
<pre><code>public class HelloWorldActivity extends Activity {
    private TextView myText;

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        myText = new TextView(this);
        myText.setText("Hello World");
        Button btn1 =  new Button(this);
        btn1.setText("Click here mofo");
        btn1.setOnClickListener(new OnClickListener() {

            public void onClick(View v) {
                changeText();

            }
        });

        setContentView(myText);
        setContentView(btn1);
    }


    public void changeText()
    {
        myText.setText("Changed");
    }
}
</code></pre>
