# 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:** 116

<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, 2:54pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/116 "2021-05-24T14:54:01Z")

</div>

Youll have to go with your preferred library, download them with a google search and copy the jar files into the appropriate folders.

The library im referring to was posted near the top of the convo, unfortunately its hard to scroll through such a long thread.

As for how to build libraries for android with eclipse.

> [@How to create android library eclipse?](https://discourse.processing.org/t/how-to-create-android-library-eclipse/28638):
>
> Hi everyone I’m hoping one of you can help please. I’ve been racking my brain trying to figure out how to extend my library to android. I already have a library which contains the following java files. Initially I just added the android libraries to my project and build path, and this seemed to clear up some of the code, however as I now understand traditionally the sketch extends PApplet whereas with android the sketch extends and therefore my current code wasn’t compatible. Having then …

Unfortunately i do not know how to do this in apde.

Now ive followed the thread as best i could and im pretty sure weve all posted solutions that work.

Help me understand which method you are using and what steps your are struggling with if anything.

Again following these steps i have managed to load the library with apde and run a sketch.

I jave not jeeded to amend any manifest or amend apde in any way.

> **[jSerialComm](https://fazecast.github.io/jSerialComm/)**
>
> jSerialComm : Platform-independent serial port access for Java

Download the jar

Add the jar to your library folder with the appropriate folder structure.

Import lib in apde.  
Dex lib in apde.  
Add import to the sketch.

To confirm i have made no use of the pc here to achieve any of this, phone only.

Done

---

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