Thanks for the reply Ytai.
First I added oracle jdk 7. Apparently something is different in Linux as
the method you suggested simply doesn't exist on my machine. Never mind, I
did manage to find where it set the jdk and I changed it from 8 to 7.
I erased the entire applications folder under ioio505 and copied it over
again. This promises that I will start from a clean slate. I had to import
the project into Android studio, but now that jdk 7 was available, it no
longer complained about my SDK. That was an improvement. I again verified
that it was using jdk 7 and not 8.
I commented out 'com.github.ytai.ioio:IOIOLibAndroidAccessory:5.05'. I
wasn't successful in commenting out
android:name="android.hardware.usb.action.USB_ACCESSORY_ATTACHED"
android:resource="@xml/accessory_filter" />
so I just deleted the lines. That solved the compilation problem. Still,
absolutely nothing changed when I ran the program.
Yesterday I visited a friend with a Windows machine. He plugged in my ioio
and his machine "worked" on my board, i.e. it didn't crash. The program
showed the button, but nothing happened when you pressed the button. It was
clear what was happening: no ioioBrdige was in place and it wasn't talking
to the ioio board.
That gave me an idea what to check here. I would run HelloIOIO without the
ioioBridge and see if it wouldn't crash. It crashed in exactly the same
way. Both my machine and the Windows machine were using emulators, so the
problem doesn't seem to be the emulator. It probably has something to do
with Linux, perhaps the driver which I installed. I don't have any Windows
machines here. I threw out Windows 10 years ago.
I think it is somehow trying to tell us that the problem is before we
actually connect to the board, i.e. I get the same error whether or not I
use ioioBridge.
Let's look at the error message again.
02-24 06:31:03.460 8183-8183/ioio.examples.hello
I/IOIOBaseApplicationHelper: Using IOIOLib version: IOIO0505
02-24 06:31:03.460 8183-8183/ioio.examples.hello D/IOIOConnectionRegistry:
Successfully added bootstrap class:
ioio.lib.impl.SocketIOIOConnectionBootstrap
02-24 06:31:03.460 8183-8183/ioio.examples.hello D/IOIOConnectionRegistry:
Bootstrap class not found:
ioio.lib.android.accessory.AccessoryConnectionBootstrap. Not adding.
02-24 06:31:03.460 8183-8183/ioio.examples.hello E/BluetoothAdapter:
Bluetooth binder is null
02-24 06:31:03.460 8183-8183/ioio.examples.hello D/IOIOConnectionRegistry:
No runtime support for:
ioio.lib.android.bluetooth.BluetoothIOIOConnectionBootstrap. Not adding.
02-24 06:31:03.460 8183-8183/ioio.examples.hello D/IOIOConnectionRegistry:
Successfully added bootstrap class:
ioio.lib.android.device.DeviceConnectionBootstrap
02-24 06:31:03.460 8183-8183/ioio.examples.hello
V/DeviceConnectionBootstrap: onCreate()
02-24 06:31:03.770 8183-8183/ioio.examples.hello
V/DeviceConnectionBootstrap: open()
02-24 06:31:03.770 8183-8183/ioio.examples.hello
V/DeviceConnectionBootstrap: state <= WAIT_DEVICE_ATTACHED
02-24 06:31:03.770 8183-8183/ioio.examples.hello D/AndroidRuntime: Shutting
down VM
02-24 06:31:03.770 8183-8183/ioio.examples.hello E/AndroidRuntime: FATAL
EXCEPTION: main
Process:
ioio.examples.hello, PID: 8183
java.lang.RuntimeException: Unable to start activity
ComponentInfo{ioio.examples.hello/ioio.examples.hello.MainActivity}:
java.lang.NullPointerException: Attempt to invoke interface method 'void
android.hardware.usb.IUsbManager.getDeviceList(android.os.Bundle)' on a
null object reference
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
There is something wrong with IUsbManager. Where is this object located?
How do I know if it is in the SDK, or wherever else it is supposed to be?
Is there any way I can check that it exists?
Thanks for the help,
Ilan
--
You received this message because you are subscribed to the Google Groups
"ioio-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/d/optout.