title: USB Accessory API on Samsung Galaxy S2 Android
body: <p>I am not able to launch my android application on to the Samsung Galaxy S2. I am trying to use the Google Add on Library for USB Accessory. When I launch the same application on Google Nexsus S it works fine.</p>
  
  <p>In the application manifest file I have used the following tag (under the application tag):</p>
  
  <pre><code>&lt;uses-library android:name="com.android.future.usb.accessory"/&gt; 
  </code></pre>
  
  <p>The error that i am getting on the console is </p>
  
  <pre><code>[2011-08-11 12:00:28 - App] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY
  [2011-08-11 12:00:28 - App] Please check logcat output for more details.
  [2011-08-11 12:00:29 - App] Launch canceled!
  </code></pre>
  
  <p>Now if I omit the following line from manifest:</p>
  
  <pre><code>&lt;uses-library android:name="com.android.future.usb.accessory"/&gt; 
  </code></pre>
  
  <p>I get the following error on LogCat:</p>
  
  <pre><code>08-11 11:58:40.250: ERROR/AndroidRuntime(30780): java.lang.NoClassDefFoundError: com.android.future.usb.UsbManager
  </code></pre>
  
  <p>Any ideas to get round this problem?</p>
  
  <p>My goal is to use the USB host (or at least use the USB Accessory API) on Galaxy S2.</p>