title: How to go to the next layout after button click on main.xml and go to the next layout again in android
body: <p>hi i would like to know how to i go to the next layout on android. i am new to designing apps and i managed to have main.xml with a button that has onclicklistener and r.layout.second.xml, that is done. now when i am at second.xml, i want to go to third.xml, however, when i click the button on the third.xml, it does nothing.</p>
  
  <p>i have added a new activity.java with roughly the same code as the main.java file with exception that setContentView(R.layout.second);</p>
  
  <p>i have added new activity to manifest however, when i reach the second.xml, i cannot click to third.xml.</p>
  
  <p>any help please.</p>