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.
In the application manifest file I have used the following tag (under the application tag):
<uses-library android:name="com.android.future.usb.accessory"/>
The error that i am getting on the console is
[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!
Now if I omit the following line from manifest:
<uses-library android:name="com.android.future.usb.accessory"/>
I get the following error on LogCat:
08-11 11:58:40.250: ERROR/AndroidRuntime(30780): java.lang.NoClassDefFoundError: com.android.future.usb.UsbManager
Any ideas to get round this problem?
My goal is to use the USB host (or at least use the USB Accessory API) on Galaxy S2.