title: Android app fails to load on some phones in PathClassLoader
body: <p>I have an app, let us call it 'com.company.foo', with a main Activity 'FooBar'. In my AndroidManifest.xml, I have</p>
  
  <pre><code>&lt;application android:label="@string/app_name"
               android:icon="@drawable/icon"
               android:theme="@android:style/Theme.NoTitleBar.Fullscreen"  &gt;
      &lt;activity android:name="FooBar"
                android:label="@string/app_name"
                android:configChanges="keyboardHidden|orientation" &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;
  </code></pre>
  
  <p>(where the dots contain other activities inside my app). In this form, it works fine on my HTC desire and on the emulator. However, a (very) small number of people who downloaded the app from the market report a crash with </p>
  
  <blockquote>
    <p>java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.company.foo/com.company.foo.FooBar}: java.lang.ClassNotFoundException: com.company.foo.FooBar in loader dalvik.system.PathClassLoader[/mnt/asec/com.company.foo-1/pkg.apk]</p>
  </blockquote>
  
  <p>Someone suggested to replace the <code>android:name="FooBar"</code> with <code>android:name=".FooBar"</code>, which again works fine on my phone and the emulator, but fails on some other devices. If I leave this attribute out altogether it will not let me install at all.</p>
  
  <p>Any ideas?</p>