title: Intent Activity not working
body: <p>I'm doing a basic activity of moving from one page to another. Everything was going perfect until I get two pages deep into the app. I used the same exact code for each page class, put the activities in the manifest and made sure all words were spelled correctly, etc., but the intent doesn't do anything when I try to go three pages deep. There are no error messages in the log at all. When I click on a button on the third page, it just turns blue but doesn't move to the next page like the previous pages. Here's my code:</p>
  
  <p>from page 1 to 3:</p>
  
  <p>Page1:</p>
  
  <pre><code>public class MainActivity extends ActionBarActivity {
  
       Button button;
       @Override
       protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          addListenerOnButton(); }
  
       public void addListenerOnButton() {
  
          final Context context = this;
  
         button = (Button) findViewById(R.id.button1);
  
         button.setOnClickListener(new OnClickListener() {
  
          @Override
          public void onClick(View arg0) {
  
              Intent intent = new Intent(context, MainMenu.class);
                          startActivity(intent);   
  
          }
  
          });
  
          }
         }
  </code></pre>
  
  <p>Page 2: has more buttons...</p>
  
  <pre><code>     public class MainMenu extends ActionBarActivity {
  
    Button button;
    Button button2;
    Button button3;
    Button button4;
    Button button5;
  
    @Override
    protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main_menu);
      addListenerOnButton();
      }
  
   public void addListenerOnButton() {
  
      final Context context = this;
  
     button = (Button) findViewById(R.id.button1);
     button2 = (Button) findViewById(R.id.button2);
     button3 = (Button) findViewById(R.id.button3);
     button4 = (Button) findViewById(R.id.button4);
     button5 = (Button) findViewById(R.id.button5);
  
     button.setOnClickListener(new OnClickListener() {
  
      @Override
      public void onClick(View arg0) {
  
          Intent intent = new Intent(context, OneMain.class);
                      startActivity(intent);   
      }       
      });
  
      button2.setOnClickListener(new OnClickListener() {
  
      @Override
      public void onClick(View arg0) {
  
          Intent intent = new Intent(context, TwoMain.class);
                      startActivity(intent);   
        }       
       });
  
      button3.setOnClickListener(new OnClickListener() {
  
      @Override
      public void onClick(View arg0) {
  
          Intent intent = new Intent(context, ThreeMain.class);
                      startActivity(intent);   
      }       
      });
  
      button4.setOnClickListener(new OnClickListener() {
  
      @Override
      public void onClick(View arg0) {
  
          Intent intent = new Intent(context, FourMain.class);
                      startActivity(intent);   
      }       
      });
  
      button5.setOnClickListener(new OnClickListener() {
  
      @Override
      public void onClick(View arg0) {
  
          Intent intent = new Intent(context, FiveMain.class);
                      startActivity(intent);   
      }       
      });
  
        }
       }
  </code></pre>
  
  <p>Page 3:</p>
  
  <pre><code>  public class OneMain extends ActionBarActivity {
  
     Button button;
  
  
      @Override
    protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.one_main);
  
   }
  
  public void addListenerOnButton() {
  
  final Context context = this;
  
  
  
  button = (Button) findViewById(R.id.button1);
  
  
  button.setOnClickListener(new OnClickListener() {
  
      @Override
      public void onClick(View arg0) {
  
          Intent intent = new Intent(context, Alphabet.class);
                      startActivity(intent);   
      }       
  });
  
  
  
         }
  
  
        } 
  </code></pre>
  
  <p>I also made sure I put in all the imports. Someone help. I'm stuck :(.</p>
  
  <p>Here is the manifest xml:</p>
  
  <pre><code>   &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.juwar74.alarabic"
     android:versionCode="1"
     android:versionName="1.0" &gt;
  
  
  
   &lt;uses-sdk
  android:minSdkVersion="8"
  android:targetSdkVersion="21" /&gt;
  
  &lt;application
  android:allowBackup="true"
  android:icon="@drawable/ic_launcher"
  android:label="@string/app_name"
  android:theme="@style/AppTheme" &gt;
  
   &lt;activity android:name=".MainActivity"
        android:label="@string/app_name"
        android:launchMode="singleTop"
        android:screenOrientation="portrait" &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:label="@string/app_name"
      android:name=".MainMenu" &gt;
  &lt;/activity&gt;
   &lt;activity
      android:label="@string/app_name"
      android:name=".OneMain" &gt;
  &lt;/activity&gt;
  
  &lt;activity
      android:label="@string/app_name"
      android:name=".TwoMain" &gt;
  &lt;/activity&gt;
  
  &lt;activity
      android:label="@string/app_name"
      android:name=".ThreeMain" &gt;
  &lt;/activity&gt;
  
  &lt;activity
      android:label="@string/app_name"
      android:name=".FourMain" &gt;
  &lt;/activity&gt;
  
  &lt;activity
      android:label="@string/app_name"
      android:name=".FiveMain" &gt;
  &lt;/activity&gt;
  
  &lt;activity
     android:label="@string/app_name"
     android:name=".OneVoc" &gt;
  &lt;/activity&gt;
  &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>And here is the code for the Alphabet.class</p>
  
  <pre><code>      import android.os.Bundle;
        import android.support.v7.app.ActionBarActivity;
  
          public class Alphabet extends ActionBarActivity {
  
          @Override
          protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.alphabet);
  
          }
         }
  </code></pre>