This line exists here: https://github.com/ytai/ioio/blob/master/software/IOIOLibAndroidDevice/AndroidManifest.xml The app merges the library manifests into its own. On Sep 9, 2014 6:20 PM, "Al B" <[email protected]> wrote:
> Then, you are right. This is the ideal solution in my case. > > For the benefit of the IOIO community, it might be worth mentioning that > when Ytai wrote "Android that acts as a host (if it is capable of doing > so)"; it means that your Android device needs to have the following two(2) > files under the */system/etc/permissions* folder: > > > *android.hardware.usb.host.xml handheld_core_hardware.xml* > > And both should contain this line within the <permissions> section: > > *<feature name=”android.hardware.usb.host”/>* > > Otherwise, your device will not be capable to act as an USB host. > Luckily, my Galaxy Nexus has them, but unfortunately my Nexus 4 only > includes the android.hardware.usb.accessory.xml file it can only act as an > accessory (see attached screenshots). The Nexus 5 might be missing them as > well, but I'm not sure since I don't have one. Maybe a forum member can > validate or check that. > > Also, another advantage with the USB Host > <http://developer.android.com/guide/topics/connectivity/usb/host.html> > mode over the USB Accessory > <http://developer.android.com/guide/topics/connectivity/usb/accessory.html> > mode is that you can keep USB debugging enable; which will allow you to > debug your app from your IDE via WiFi by just setting these few steps: > > - Make sure that you computer and your Android device are connected to > the same WiFi network. > - Connect the Android device via the USB cable to your computer. > - From your SDK platform-tools/ directory, enter adb tcpip 5555 at the > command prompt. > - Then, enter adb connect <device-ip-address>:5555 > > Now adb should be working over Wi-fi and you can remove the USB cable from > the Android device. Then, enter the following command to confirm adb is > working over Wi-fi and your device is still connected: > > $adb devices > > You should see the the IP address of your device listed. > > You can always turn off this adb connection by disabling USB debugging or > by entering this command: > > $adb usb > > Enjoy! > > Ytai, can you add the line below to IOIOSimpleApp AndroidManifest.xml > file? The IOIO seems to be able to launch the app more consistently when > this line is included. > > *<uses-feature android:name="android.hardware.usb.host" />* > > Thanks! > > -- > 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. > -- 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.
