Hey, did you ever find a solution for this problem?
Because I'm having the exact same trouble, I pushed the usb library and the permission file, but the demokit cant find the lib.
Welcome to CyanogenMod
![]() |
Welcome to our forum. Like most online communities you must register to post, but don't worry this is a simple free process that requires minimal information for you to signup. Be a part of the CyanogenMod Forum by signing in or creating an account. You can even sign in with your Facebook or Twitter account.
|
Guest Message by DevFuse
Help, How I can enable USB Accessory Mode
Started by vikingxie, Oct 17 2011 03:31 PM
3 replies to this topic
#1
Posted 08 March 2012 - 09:49 PM
#2
Posted 27 June 2012 - 12:40 PM
Seeeduino ADK Main Board is not connecting with my Android device! Ainol Aurora Android 4.0.4 with CyanogenMod 9 (files com_android_future_usb_accessory_jar and android_hardware_usb_accessory_xml is present) In logcat I see: mAccessory is null
When I connect my Arduino board with Android Tablet in Port Monitor (Arduino IDE) i see:
But in Android Tablet DemoKit application I see text:
But nothing happens when I plug it in.
I try use Google API 12 and 15 version, but this take no effect. Error: mAccessory is null
When I connect my Arduino board with Android Tablet in Port Monitor (Arduino IDE) i see:
Quote
Device addressed... Requesting device descriptor. found possible device. swithcing to serial mode device supports protocol 1 or higher
But in Android Tablet DemoKit application I see text:
Quote
Please connect a DemoKit board
I try use Google API 12 and 15 version, but this take no effect. Error: mAccessory is null
Edited by tolik777, 27 June 2012 - 12:42 PM.
#3
Posted 30 June 2012 - 07:08 PM
mAccessory is null has to do with the Java code of the DemoKit app. I'm sure you've done a mistake modifying the original code to run in Android 3.1 or newer. Won have you written this
UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE);
instead of this:
mUsbManager = (UsbManager) getSystemService(Context.USB_SERVICE);
?
UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE);
instead of this:
mUsbManager = (UsbManager) getSystemService(Context.USB_SERVICE);
?















