0
votes

I have to send some data from arduino to android. I checked the internet and found the arduino mega adk + processing the most easy way to do it. So i bought the adk board but not even a single ArduinoADKUsb example worked in processing. I have Processing 2.2.1 and Arduino 1.5.6r2. I am getting the processing code compiled but with the following error :

FATAL EXCEPTION: Animation Thread

Process: processing.android.test.adk_analogread, PID: 28362

java.lang.RuntimeException: stub

    at com.android.future.usb.UsbManager.getInstance(Unknown Source)

    at cc.arduino.ADKCommunication.<init>(Unknown Source)

    at cc.arduino.ArduinoAdkUsb.<init>(Unknown Source)

    at processing.android.test.adk_analogread.adk_analogRead.setup(adk_analogRead.java:31)

    at processing.core.PApplet.handleDraw(Unknown Source)

    at processing.core.PGraphicsAndroid2D.requestDraw(Unknown Source)

    at processing.core.PApplet.run(Unknown Source)

    at java.lang.Thread.run(Thread.java:841)

I am getting the sketch on my Android phone as well but when I open it says "Unfortunately adk_analogRead has stopped"

Any help would be greatly appreciated.

1

1 Answers

0
votes

Try downgrading to Processing 2.0.3. It worked for me for a similar issue. Google search for Processing and Google Code for the download.

Also, I use a cheap Bluetooth module to send data between Android and Arduino using the Ketai library.