# APDE USB / OTG communication

**URL:** <https://discourse.processing.org/t/apde-usb-otg-communication/30114>\
**Category:** Processing for Android\
**Created:** [May 16, 2021, 12:13am UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114 "2021-05-16T00:13:07Z")\
**Posts on this page:** 1\
**Showing post:** 114

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [May 24, 2021, 1:45pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/114 "2021-05-24T13:45:45Z")

</div>

Im not particularly great with libraries, i jave an android repo that you can make use of ive posted it on the repo however i think ive figured out how to get any library onto android.

Take a look at the process.

Navigate to the library settings in apde until you get to this screen

 ![Screenshot_20210524_144210_com.calsignlabs.apde](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/6/6ac57b23c114494cbd6e557e3e1b0a81cc5f1fea.jpeg)

Press dx dexer

 ![Screenshot_20210524_144708_com.calsignlabs.apde](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/0/0a6064f398e35269023da7d26fde284b9f6eaad9.jpeg)

Select the library you want to dex.(Note the ext requirements)

Then take a look at the files contained in the folder and their names.

 ![Screenshot_20210524_144222_com.android.documentsui](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/f/fa6e03d42e88a823eb3960674812e47b32ad06e6.jpeg)

As you can see i am dexing the fileWriter.jar library and so i need to name the output file fileWriter-dex.jar. Apde will dex your file and then you are good to go, i had no more crashes after this on my device.

Ive also managed to run my sketch with the jserial lib ive linked in a previous post.

i cant help any further as i dont have an arduino.

Ps

This is actually the solution posted by @jafal earlier in thread.

---

_[View the full topic](https://discourse.processing.org/t/apde-usb-otg-communication/30114)._
