title: How do I Program a button in Android Eclipse?
body: <p>I have recently started programming android apps (put simply, i have next to no experience with android programming). I have some experience with basic HTML, but not much beyond that. I have also been searching the internet for weeks on how to program one little button. None of them have worked. There are several XML layouts in my res folder, and all of them have buttons. What I need to know is how I can program a button in one of my XML layouts so that when it is pressed it takes me to another XML layout. However, if you answer this, please put a step-by-step guide, and tell me where to put the code including the placement in the code. My real problem, is the fact that i put in the code that tutorials tell me to, and it tells me that there are errors.</p>
  
  <p>here are some of the websites i have tried:</p>
  
  <p><a href="http://developer.android.com/resources/faq/commontasks.html#opennewscreen" rel="nofollow noreferrer">http://developer.android.com/resources/faq/commontasks.html#opennewscreen</a></p>
  
  <p><a href="https://stackoverflow.com/questions/4292082/how-to-connect-two-activities">how to connect two activities</a></p>
  
  <p><a href="https://stackoverflow.com/questions/1102050/how-to-navigate-from-one-screen-to-another-screen">How to navigate from one screen to another screen</a></p>
  
  <p><a href="http://www.connorgarvey.com/blog/?p=93#codesyntax_3" rel="nofollow noreferrer">http://www.connorgarvey.com/blog/?p=93#codesyntax_3</a></p>