When clicking the button, the content doesn't change. - Android
<p>I want to change the content on a button change, but it never works.</p>

<pre><code>        button.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                setContentView(R.layout.blahdyblah);
            }
        });
</code></pre>

<p>So that's the code, but whenever I want to change setContentView(), it doesn't change, it just clicks and does nothing. If anyone could help me in this task...</p>

<p>I've also tried putting the setContentView in another function... That still doesn't work.</p>
