HelloIOIO will need at least IOIOLib and IOIOLibBT if you are using Bluetooth and will need IOIOLibAccessory if you are using OA -> USB Debugging must be turned off. Have you edited manifest.xml in Android Studio? You should also copy file accessory_filter.xml from Eclipse.
Here is my manifest.xml for AS: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.ioiosensor.elnex.ioiosensor" > <uses-permission android:name="android.permission.BLUETOOTH" /> <uses-permission android:name="android.permission.INTERNET" /> <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <uses-library android:name="com.android.future.usb.accessory" android:required="false" /> <activity android:name=".MyActivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> <intent-filter> <action android:name="android.hardware.usb.action.USB_ACCESSORY_ATTACHED" /> </intent-filter> <meta-data android:name="android.hardware.usb.action.USB_ACCESSORY_ATTACHED" android:resource="@xml/accessory_filter" /> </activity> </application> </manifest> On Tuesday, 25 November 2014 05:42:56 UTC, Andries Kruger wrote: > > Good day, > > I've been going through the ioio-users group the last few days trying to > get the IOIO Libs working in Android Studio. I know it has to be possible > as I've seen users saying that they have managed to get it working. I am > pretty new to Android development and have tried the solutions they posted > as much as I can. I don't always understand everything. Here is what I've > tried: > -Importing the IOIOLib as a module. Everything seems to be working fine, > I've used the code from the HelloIOIO example and it compiles. When I > connect the IOIO-OTG to my phone, nothing happens. > -Building the HelloIOIO example in Eclipse, then copying the .jar files to > my Android Studio project and using them as libraries. Once again > everything compiles and I can run it on my phone but nothing happens when > the IOIO is connected. > > I've tried numerous other stuff as well, the two methods above are the > only ones that I got close to "working". I would really prefer Android > Studio over Eclipse. > > I've noticed that there are 4 libraries for the > IOIO: IOIOLib; IOIOLibAccessory; IOIOLibAndroidDevice and IOIOLibBT. Can > the HelloIOIO example work by only using the IOIOLib? Do I need the rest? > I'm not using Bluetooth to connect to my IOIO-OTG board. > > PS: > -IOIO-OTG is running latest firmware; > -HelloIOIO built from Eclipse works fine on my phone. > > Any help getting this to work would be greatly appreciated. > -- 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 http://groups.google.com/group/ioio-users. For more options, visit https://groups.google.com/d/optout.
