title: NameNotFound Exception when calling PackageManager.getPackageInfo
body: <p>I am trying to organize my application into packages because it will have several comprehensive list menus. The way I am trying to populate the menus is by finding the activities in each package.</p>
  
  <p>The problem may be with the manifest:</p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="machinists.toolkit"
  android:versionCode="1"
  android:versionName="1.0" android:installLocation="auto"&gt;
  
  &lt;uses-sdk android:minSdkVersion="8" /&gt;
  
  &lt;application
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name" android:debuggable="true"&gt;
      &lt;activity
          android:label="@string/app_name" 
          android:name=".MTEActivity" 
          android:theme="@android:style/Theme.NoTitleBar"&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=".ExceptionActivity"&gt;&lt;/activity&gt;
      &lt;activity android:name=".activities.ReferenceActivity"&gt;&lt;/activity&gt;
      &lt;activity android:name=".activities.CalculatorActivity"&gt;&lt;/activity&gt;
      &lt;activity android:name=".activities.reference.FormulasActivity"&gt;&lt;/activity&gt;
      &lt;activity android:name=".activities.reference.MaterialsActivity"&gt;&lt;/activity&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>and the snippet in question is:</p>
  
  <pre><code>try {
          this.activities = this.packageManager.getPackageInfo(this.packageName, PackageManager.GET_ACTIVITIES).activities;
      } catch (NameNotFoundException e) {...
  </code></pre>
  
  <p>In this instance this.packageName solves to machinist.toolkit.activities.reference</p>
  
  <p>The getPackageInfo method calls for the full name of the package and that should be correct if I am understanding.</p>
  
  <p>Any idea what is wrong?</p>
  
  <p>Thanks.</p>