Unfortunately, androiddemo(project name) has stopped
<p>I am new with android this is my 1st demo app. I am trying to navigate from one page to another. But i am not able to navigate to another page i have a button in may main xml file and on licking it is moving to an another xml nextpage. I have 2 java class : 1st MianAcitvity, nextpagejava. 2 xml : activity_main, nextpage</p>

<p>My code : manifest</p>

<pre><code>      &lt;activity
      android:name="com.example.androiddemo.MainActivity"
      android:label="@string/app_name" &gt;
      &lt;intent-filter&gt;
          &lt;action android:name="android.intent.action.MAIN" /&gt;

            &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
         &lt;/intent-filter&gt;
     &lt;/activity&gt;
        &lt;activity android:name="nextpagejava" &gt;&lt;/activity&gt;
</code></pre>

<p>MainActivity.java</p>

<pre><code>package com.example.androiddemo;
  import android.os.Bundle; 
   import android.app.Activity; 
   import android.content.Intent; 
   import android.drm.DrmStore.Action;
  import android.view.Menu; 
   import android.view.View; 
  import android.view.View.OnClickListener; 
    import android.widget.Button;

    public class MainActivity extends Activity implements OnClickListener {

      @Override
     protected void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);

          Button bt = (Button)findViewById(R.id.bnt);
           bt.setOnClickListener(new View.OnClickListener() {

           @Override
           public void onClick(View v) {
                / / TODO Auto-generated method stub

             }
            }); 
            }

             @Override
            public boolean onCreateOptionsMenu(Menu menu) {
            // Inflate the menu; this adds items to the action bar if it is present.
              getMenuInflater().inflate(R.menu.activity_main, menu);
             return true;
            }

             @Override
            public void onClick(View v) {
              // TODO Auto-generated method stub
            switch(v.getId()){
              case R.id.bnt:
                     Intent in = new Intent(this, nextpagejava.class);
                     startActivity(in);
               break;


              }
           }
          }
</code></pre>

<p>acitivity_main.xml</p>

<pre><code>           &lt;LinearLayout  xmlns:android="http://schemas.android.com/apk/res/android"
           xmlns:tools="http://schemas.android.com/tools"
           android:layout_width="match_parent"
           android:layout_height="match_parent"
            tools:context=".MainActivity" &gt;

               &lt;TextView 
           android:id="@+id/clicktxt"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:text="Click"        
         /&gt;

           &lt;Button
           android:id="@+id/bnt"
            android:layout_height="wrap_content"
            android:layout_width="wrap_content"
           android:text="Click Me"
          /&gt;
</code></pre>

<p>nextpage.xml</p>

<pre><code>           &lt;TextView 
             android:layout_width="match_parent"
              android:layout_height="wrap_content"
               android:text="I am i a next page..."
             /&gt;

            &lt;Button 
              android:id="@+id/btn1"
               android:layout_width="match_parent"
                android:layout_height="wrap_content"
              android:text="Back"
             /&gt;
</code></pre>

<p>nextpagejava.java</p>

<pre><code>         package com.example.androiddemo;

          import android.app.Activity;
          import android.os.Bundle;
          import android.view.View;
          import android.view.View.OnClickListener;
            import android.widget.Button;

           public class nextpagejava extends Activity implements OnClickListener{

       @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
              setContentView(R.layout.activity_main);

            Button bt = (Button)findViewById(R.id.btn1);
            bt.setOnClickListener(this);
            }

          @Override
           public void onClick(View v) {
            // TODO Auto-generated method stub

        }
         }
</code></pre>

<p>i am getting message that "Unfortunately, androiddemo has stopped" this message as a popup.</p>

<p>can anybody tell me why this error is coming and please tell me from where i can find line by line debug logs. </p>
