Button Opening a New Xml Page
<p>I have an Android App That requires a button to open up a new xml page. This is what it's like now, could someone add the necessary code to make it open Page2Activity when I click on the button? Code: </p>

<pre><code>    public class MainActivity extends Activity {

    /** Called when the activity is first created. */

    @Override

    public void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);

    setContentView(R.layout.main);


    Void onClick;View arg0; {
        // TODO Auto-generated method stub

    }
    };

    }
</code></pre>

<p>I figured this out using this method : <strong><em>http://stackoverflow.com/questions/4094103/linking-xml-pages-with-layout</em></strong> ,but I will try All of yours as well.</p>
