title: Android can't find class even though it's declared in manifest
body: <p>I've declared all my classes in the Android Manifest but for some reason I keep getting an ActivityNotFoundException.</p>
  
  <p><strong>AndroidManifest.xml</strong></p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.abc.calorieapp"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk
          android:minSdkVersion="14"
          android:targetSdkVersion="15" /&gt;
  
      &lt;uses-permission android:name="android.permission.CAMERA" /&gt;
      &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
  
      &lt;uses-feature
          android:name="android.hardware.camera"
          android:required="false" /&gt;
  
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  
      &lt;application
          android:name=".activities.CalorieApplication"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
          &lt;activity
              android:name=".activities.AActivity"
              android:label="@string/title_activity_a"
              android:screenOrientation="portrait" &gt;
          &lt;/activity&gt;
          &lt;activity
              android:name=".activities.BActivity"
              android:label="@string/title_activity_b"
              android:screenOrientation="portrait" &gt;
          &lt;/activity&gt;
          &lt;activity
              android:name=".activities.CActivity"
              android:label="@string/title_activity_c"
              android:screenOrientation="portrait" &gt;
          &lt;/activity&gt;
  
          &lt;activtity
              android:name=".activities.DActivity"
              android:label="@string/title_activity_d"
              android:screenOrientation="portrait" /&gt;
  
  
          &lt;activity
              android:name=".activities.EActivity"
              android:label="@string/app_name"
              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;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>and here's the call that's giving me trouble</p>
  
  <pre><code>Intent intent = new Intent ( AActivity.this, BActivity.class );
                  startActivity ( intent );
  </code></pre>
  
  <p><strong>BActivity.java</strong></p>
  
  <pre><code>package com.wks.calorieapp.activities;
  
  
  
  public class BActivity extends Activity
  {
      private static final String TAG = BActivity.class.getCanonicalName ();
  
      private EditText editSearch;
      private Button buttonSearch;
      private ViewSwitcher viewSwitcher;
      private RelativeLayout viewLoading;
      private LinearLayout viewResults;
      private TextView textLoading;
      private ProgressBar progressLoading;
      private ExpandableListView listNutritionInfo;
  
      private enum BActivityView{VIEW_IDLE,VIEW_LOADING,VIEW_RESULTS};
      private BActivityView searchActivityView;
  
      @Override
      protected void onCreate ( Bundle savedInstanceState )
      {
          super.onCreate ( savedInstanceState );
          this.setContentView ( R.layout.activity_b );
          setupView();
          setupListeners();
      }
  </code></pre>
  
  <p><strong>Full Stacktrace:</strong></p>
  
  <pre><code>06-22 21:01:50.625: E/AndroidRuntime(18120): FATAL EXCEPTION: main
  06-22 21:01:50.625: E/AndroidRuntime(18120): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.wks.calorieapp/com.wks.calorieapp.activities.BActivity}; have you declared this activity in your AndroidManifest.xml?
  06-22 21:01:50.625: E/AndroidRuntime(18120):    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1511)
  06-22 21:01:50.625: E/AndroidRuntime(18120):    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1387)
  06-22 21:01:50.625: E/AndroidRuntime(18120):    at android.app.Activity.startActivityForResult(Activity.java:3195)
  06-22 21:01:50.625: E/AndroidRuntime(18120):    at android.app.Activity.startActivity(Activity.java:3302)
  06-22 21:01:50.625: E/AndroidRuntime(18120):    at com.wks.calorieapp.activities.HomeActivity$OnGridActivitiesClicked.onItemClick(EActivity.java:89)
  06-22 21:01:50.625: E/AndroidRuntime(18120):    at android.widget.AdapterView.performItemClick(AdapterView.java:292)
  06-22 21:01:50.625: E/AndroidRuntime(18120):    at android.widget.AbsListView.performItemClick(AbsListView.java:1181)
  06-22 21:01:50.625: E/AndroidRuntime(18120):    at android.widget.AbsListView$PerformClick.run(AbsListView.java:2709)
  06-22 21:01:50.625: E/AndroidRuntime(18120):    at android.widget.AbsListView$1.run(AbsListView.java:3464)
  06-22 21:01:50.625: E/AndroidRuntime(18120):    at android.os.Handler.handleCallback(Handler.java:605)
  06-22 21:01:50.625: E/AndroidRuntime(18120):    at android.os.Handler.dispatchMessage(Handler.java:92)
  06-22 21:01:50.625: E/AndroidRuntime(18120):    at android.os.Looper.loop(Looper.java:137)
  06-22 21:01:50.625: E/AndroidRuntime(18120):    at android.app.ActivityThread.main(ActivityThread.java:4511)
  06-22 21:01:50.625: E/AndroidRuntime(18120):    at java.lang.reflect.Method.invokeNative(Native Method)
  06-22 21:01:50.625: E/AndroidRuntime(18120):    at java.lang.reflect.Method.invoke(Method.java:511)
  06-22 21:01:50.625: E/AndroidRuntime(18120):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:980)
  06-22 21:01:50.625: E/AndroidRuntime(18120):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:747)
  06-22 21:01:50.625: E/AndroidRuntime(18120):    at dalvik.system.NativeStart.main(Native Method)
  </code></pre>