title: Application Package installer has stopped unexpectedly on installation
body: <p>Hi all. This is my first post on StackOverflow, though I have been making use of this site for a several years. Usually I'm able to find an answer to any queries that I may have, by referring to questions that others have asked; however, in this case I am completely stumped, despite having done quite a bit of homework already</p>
  
  <p>I am currently in the process of developing an Android application which is required to communicate with a piece of hardware - more specifically a PIC32 board - and display data that is returned by the board in real-time.</p>
  
  <p>At present I have simply been using Eclipse and Android emulator for designing the interface and programming the backend of the application. And, I have now gotten to a stage where I would like to test the operation of the application on a physical Android device. However, whenever I attempt to install the application, directly from the phone (I send the .apk via Dropbox) I always get the error <b>'The application Package installer (process com.android.packageinstaller) has stopped unexpectedly. Please try again'</b>. Now, I have done my homework and seemed to have determined that the error may lie in the Android Manifest file for the application. However, I just cannot see where this issue may be. I have seen other issues resolved by removing certain  tags or replicated  tags; however, even then my application does not want to install on my device, though it installs and works pretty much perfectly everytime when run through the emulator.</p>
  
  <p>The application I am developing is based loosely on the Demo code provided by the hardware manufacturer. It has been appropriately modified. And, when I appropriately modified the Manifest file for my application and tested it with the demo application everything seemed to work fine on a physical device. So, something is telling me that the Manifest file may not actually be the issue. The key differences between my application and the demo application is that I have divided the code up into appropriate packages, such that one contains application code (activities) and the other contains code for communicating with the PIC32 board. I have also added an activity - the demo code only has one, but have two at present. The final difference is that I have defined a global object, for communicating with the board, that can be used by all of the application's activities. However, I don't believe that these would be the cause of this issue.</p>
  
  <p>So again, the application seems to work fine on the emulator, but it simply does not want to install on a physical Android device - everytime I try to install I get an alert dialog box displaying this message.</p>
  
  <p>I would very much appreciate any help and advice that anybody could provide, and thanks in advance.</p>
  
  <p>Also, here is the Manifest file for the application I am developing:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.tribosonics.android.TribosonicsApp"
  android:versionCode="1"
  android:versionName="1.0" &gt;
  
  &lt;uses-sdk android:minSdkVersion="10" &gt;
  &lt;/uses-sdk&gt;
  &lt;uses-sdk android:targetSdkVersion="10" &gt;
  &lt;/uses-sdk&gt;
  
  &lt;!--
  &lt;permissions&gt;
      &lt;feature name="android.hardware.usb.accessory" /&gt;
  
      &lt;library
          name="com.android.future.usb.accessory"
          file="/system/framework/com.android.future.usb.accessory.jar" /&gt;
  &lt;/permissions&gt;
  --&gt;
  
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
  
  &lt;application
      android:name=".GlobalAccessoryManager"
      android:debuggable="true"
      android:icon="@drawable/tribosonics_icon"
      android:label="@string/app_name" &gt;
      &lt;intent-filter&gt;
          &lt;action android:name="android.hardware.usb.action.USB_ACCESSORY_ATTACHED" /&gt;
      &lt;/intent-filter&gt;
  
      &lt;meta-data
          android:name="android.hardware.usb.action.USB_ACCESSORY_ATTACHED"
          android:resource="@xml/accessory_filter" /&gt;
  
      &lt;activity
          android:name=".TribosonicsApp"
          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;activity
          android:name=".SetScanPreferences"
          android:screenOrientation="portrait" &gt;
      &lt;/activity&gt;
  
      &lt;uses-library android:name="com.android.future.usb.accessory" /&gt;
  &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>