title: android switch from one activity to another
body: <p>I have two layout xml files, each with its own separate Activity class. Each class is valid, because I can refer to each activity from the application section of the manifest file and it launches and works. My problem is when I click a button on the first layout xml file to go to the other one - it will switch to the second layout xml file, but any actions on that layout do nothing. The code in the second activity class doesn't fire. For example, when I have MenuActivity listed first, it will display the layout xml file, and all calls on that layout work. When I click the button to switch to Home, it will display the home layout xml file, but all code within HomeActivity does nothing. I'm sure it's something simple, but I can't put my finger on it. Thanks in advance.</p>
  
  <pre><code>&lt;application
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
      &lt;activity
          android:name=".MenuActivity"
          android:label="@string/title_activity_menu" &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=".HomeActivity" /&gt;
  &lt;/application&gt;
  </code></pre>