Using Intents to switch between classes
<p>I have a 'home page' on my app with a button in.  I have implemented an onClickListener. I want to change to a different class when clicking the button. (Navigating to another page within the app with a different XML file)  What am I doing wrong??</p>

<pre><code>Intent myIntent = new Intent(this, menu_two.class);
         startActivity(myIntent);
</code></pre>

<p>That is in the code which goes in a switch statement which identifies which button has been pressed. I am not using an XML file, layout hard coded straight from java.</p>

<p>Home I have given you enough information to help</p>

<p>thanks</p>
