Ytai, I'm looking forward to your impending AS support - do you have a 
timeline on it?  Should we be able to build a working app from your gradle 
branch as it is now?

In the meantime, Egbert, I'd really love to follow your process, but the 
images are not visible to us.  Inspecting the source it looks like you may 
have pasted from a word doc?  Anyhow, the image sources point to files on 
your local windows system, so you are the only one who can see them at the 
moment.  Hope you get a chance to update your writeup.

Thanks.

On Thursday, May 28, 2015 at 1:38:50 PM UTC-5, Ytai wrote:
>
> Thanks for sharing that.
> I'm actually in the middle of converting everything to Gradle, then adding 
> AS support and upload packages to Maven, so hopefully your tutorial will 
> not be needed for much longer.
> As for your questions:
>
>    - *android app future.usb.usbmanager not found*: you need to use the 
>    "Google-API" version of the SDK. For example, in my (yet unpublished) 
>    Gradle scripts, I'm building IOIOLibAccessory with compileSdkVersion 
>    "Google Inc.:Google APIs:12".
>    - *my app is says my firmware is incompatible*: This is pretty 
>    self-explaining. Upgrade your firmware...
>    
>
> On Thu, May 28, 2015 at 7:23 AM, Egbert Boer <[email protected] 
> <javascript:>> wrote:
>
>> Generating AAR file for use in android studio.
>>
>> I did a small write up for people who want to use IOIO library in android 
>> studio.
>>
>> Open android studio and open a new project.
>>
>> Application name IOIO 
>>
>> Add no activity.
>>
>> Select file new module  > android library.
>>
>> Application name and module name : ioio
>>
>> Add no activity.
>>
>> Now download the latest package from IOIO website and extract.
>>
>> Goto \IOIOLib\src\ioio\lib select directorys api, impl, spi, util.
>>
>> In android studio in the project tree
>>
>> Drag the selected folders from explorer into android studio in the 
>> re.ioio directory.
>>
>> Next goto IOIOLib\target\android\src\ioio\lib\util select all file and 
>> folders inside util.
>>
>> Drag the selected folder & files from explorer into android studio in the 
>> re.ioio\util directory.
>>
>>  Next goto IOIOLib\target\android\src\ioio\lib\spi select all file and 
>> folders inside util.
>>
>> Drag the selected folder & files from explorer into android studio in the 
>> re.ioio\spi directory.
>>
>> Now do the same for the directory: IOIOLibAccessory, 
>> IOIOLibAndroidDevice, IOIOLibBT
>>
>> In IOIOLib\target select target android or pc and drag and drop files in 
>> your project tree
>>
>> Select the ioio top folder int the project tree and right click on it. 
>> Select replace in path.
>>
>>  Fill in the fields as shown on the picture, don’t forget to select 
>> scope > whole project
>>
>>  A dialog will appear select > all files.
>>
>> Make sure you have google API installed in the SDK manager.
>>
>> Now your ready to build. Select Build > Make project.
>>
>> Your AAR file will be in \IOIO\IOIO\ioio\build\outputs\aar.
>>
>>  
>>
>> How to use the aar file:
>>
>> In android studio create new project, with blank activity.
>>
>> Copy the AAR file to \MyApplication\app\libs.
>>
>> In build.gradle (module) add:
>>
>> dependencies {
>>
>>     compile fileTree(dir: 'libs', include: ['*.jar'])
>>
>>     compile 'com.android.support:appcompat-v7:22.0.0'
>>
>>         compile(name:'ioio-debug', ext:'aar')
>>
>>     }
>>
>>     repositories{
>>
>>         flatDir{
>>
>>             dirs 'libs'
>>
>>         }
>>
>>     }
>>
>>  
>>
>> In AndroidManifest.xml add:
>>
>>     <uses-permission android:name="android.permission.BLUETOOTH" />
>>
>>     <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
>>
>>     <uses-permission android:name="android.permission.INTERNET"/>
>>
>> *Library path use re.ioio instead of ioio.lib*
>>
>>  
>>
>> Troubles: android app future.usb.usbmanager not found.
>>
>> the solution is using android.hardware.usb instead of 
>> com.android.future.usb
>>
>> .getInstance(wrapper); not found. In Adapter.java
>>
>>  
>>
>> If i test my app is says my firmware is incompatible. What am i doing 
>> wrong here?
>>
>>  
>>
>> -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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.

Reply via email to