title: Created a second page in Eclipse for Android App, but not working
body: <p>I created the first default Hello World Page in Android, but I placed a button there to move the screen to second window (which I created). But When I am clicking on first button, it moves me to a blank page. </p>
  
  <p>Actually my second page has a button (showing Second page), but why android in not showing it?
  Am I mistaking something?</p>
  
  <p>MainActivity.java file content is:</p>
  
  <pre><code>import android.os.Bundle;
  import android.app.Activity;
  import android.content.Intent;
  import android.view.Menu;
  import android.view.View;
  import android.view.View.OnClickListener;
  import android.widget.Button;
  
  public class MainActivity extends Activity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          Button b = (Button) findViewById(R.id.button1);
  
          b.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  // TODO Auto-generated method stub
                  startActivity(new Intent(MainActivity.this, Second.class));
              }
          });
      }
  
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.main, menu);
          return true;
      }
  
  
  }
  </code></pre>
  
  <p>Second.java content is:</p>
  
  <pre><code>import android.app.Activity;
  import android.os.Bundle;
  
  public class Second extends Activity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          // TODO Auto-generated method stub
          super.onCreate(savedInstanceState);
      }
  
  }
  </code></pre>
  
  <p>Here are the application screenshots:</p>
  
  <ol>
  <li><a href="http://pbrd.co/YRNZvw" rel="nofollow">http://pbrd.co/YRNZvw</a></li>
  <li><a href="http://pbrd.co/YRNNN5" rel="nofollow">http://pbrd.co/YRNNN5</a></li>
  </ol>