--
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 ioio-users+...@googlegroups.com.
To post to this group, send email to ioio-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/d/optout.
apply plugin: 'com.android.application'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
}
}
android {
buildToolsVersion "22.0.1"
compileSdkVersion 19
}
dependencies {
compile 'com.github.ytai.ioio:IOIOLibAndroid:5.05'
compile 'com.github.ytai.ioio:IOIOLibAndroidBluetooth:5.05'
compile 'com.github.ytai.ioio:IOIOLibAndroidAccessory:5.05'
compile 'com.github.ytai.ioio:IOIOLibAndroidDevice:5.05'
}
repositories {
mavenCentral()
jcenter()
maven {
url 'http://www.sparetimelabs.com/maven2'
}
}
<meta-data
android:name="android.hardware.usb.action.USB_ACCESSORY_ATTACHED"
android:resource="@xml/accessory_filter" />
<meta-data
android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
android:resource="@xml/device_filter" />
Try giving the IOIOLibAndroidDevice library the same treatment. Maybe that was the one that had the problem. Commenting out XML file uses the
<!-- this is now ignored -->
syntax.
@Override
protected void setup() throws ConnectionLostException {
showVersions(ioio_, "IOIO connected!");
led_ = ioio_.openDigitalOutput(0, true);
enableUi(true);
}
/**
* Called repetitively while the IOIO is connected.
*
* @throws ConnectionLostException
* When IOIO connection is lost.
* @throws InterruptedException
* When the IOIO thread has been interrupted.
*
* @see ioio.lib.util.IOIOLooper#loop()
*/
@Override
public void loop() throws ConnectionLostException, InterruptedException {
led_.write(!button_.isChecked());
Thread.sleep(100);
}
One in the setup() and the second in the loop(). It never hit either one, or at least I never got an indication that it hit a breakpoint.
If you verified that commenting out those 2 compile lines, then it should work. I assume I've got the emulator with the ioiobridge attached but I have
no independent way to verify it. It has stopped giving me the error but it does no useful work. The log looks like
02-26 12:07:03.560 27767-27767/ioio.examples.hello W/System: ClassLoader referenced unknown path: /data/app/ioio.examples.hello-2/lib/x86_64
02-26 12:07:03.930 27767-27767/ioio.examples.hello I/IOIOBaseApplicationHelper: Using IOIOLib version: IOIO0505
02-26 12:07:04.040 27767-27767/ioio.examples.hello D/IOIOConnectionRegistry: Successfully added bootstrap class: ioio.lib.impl.SocketIOIOConnectionBootstrap
02-26 12:07:04.140 27767-27769/ioio.examples.hello W/art: Suspending all threads took: 50ms
02-26 12:07:04.140 27767-27767/ioio.examples.hello D/IOIOConnectionRegistry: Bootstrap class not found: ioio.lib.android.accessory.AccessoryConnectionBootstrap. Not adding.
02-26 12:07:04.140 27767-27767/ioio.examples.hello E/BluetoothAdapter: Bluetooth binder is null
02-26 12:07:04.210 27767-27767/ioio.examples.hello D/IOIOConnectionRegistry: No runtime support for: ioio.lib.android.bluetooth.BluetoothIOIOConnectionBootstrap. Not adding.
02-26 12:07:04.210 27767-27767/ioio.examples.hello D/IOIOConnectionRegistry: Bootstrap class not found: ioio.lib.android.device.DeviceConnectionBootstrap. Not adding.
02-26 12:07:04.270 27757-27757/? E/memtrack: Couldn't load memtrack module (No such file or directory)
02-26 12:07:04.270 27757-27757/? E/android.os.Debug: failed to load memtrack module: -2
02-26 12:07:04.270 27757-27757/? I/Radio-JNI: register_android_hardware_Radio DONE
02-26 12:07:04.480 27767-27769/ioio.examples.hello W/art: Suspending all threads took: 40ms
02-26 12:07:04.510 27767-27797/ioio.examples.hello D/IOIOImpl: Waiting for IOIO connection
02-26 12:07:04.510 27767-27797/ioio.examples.hello V/IOIOImpl: Waiting for underlying connection
02-26 12:07:04.510 27767-27797/ioio.examples.hello V/SocketIOIOConnection: Creating server socket
02-26 12:07:04.510 27767-27797/ioio.examples.hello V/SocketIOIOConnection: Waiting for TCP connection
02-26 12:07:04.540 27757-27757/? D/AndroidRuntime: Calling main entry com.android.commands.wm.Wm
02-26 12:07:04.560 27757-27757/? D/AndroidRuntime: Shutting down VM
02-26 12:07:04.580 27767-27767/ioio.examples.hello D/gralloc_goldfish: Emulator without host-side GPU emulation detected.
02-26 12:07:04.730 1353-1372/system_process I/ActivityManager: Displayed ioio.examples.hello/.MainActivity: +1s530ms
Do you see any hints here?
Thanks,
Ilan
No. These libraries are not needed for running with the emulator/bridge.
Why do you have the hyphen before the device name in your command line? It shouldn't be there.