# 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:** 6\
**Page:** 9

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [May 27, 2021, 12:01pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/161 "2021-05-27T12:01:18Z")

</div>

@ZENAR57 try now

> **[AnroidSerial.rar](https://drive.google.com/file/d/1VnIVK1D8xf5K0JAztfMpX9r_LQYWiNH-/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [May 27, 2021, 12:10pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/162 "2021-05-27T12:10:11Z")

</div>

> [@ZENAR57](#):
>
> It will be able to work on api16, is it android 4.1? Today there are still many large, old tablets on android4.1, I wanted to use them in the first place,

you can compile your app then move it to other phone as compiled application my tablets Android 10

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [May 27, 2021, 12:16pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/163 "2021-05-27T12:16:48Z")

</div>

the library is ready to use just copy it to libraries folder

---

<div class="post-metadata">

**Author:** ![ZENAR57](https://avatars.discourse-cdn.com/v4/letter/z/a698b9/32.png) [@ZENAR57](https://discourse.processing.org/u/ZENAR57)\
**Post date:** [May 27, 2021, 12:21pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/164 "2021-05-27T12:21:04Z")

</div>

I do not want a tablet with android 10, nailing it to the wall in a dirty workshop near the boilers.  
I saw on github that many libraries will only work with android 5 or more.  
If I lower the api level down to 16, in the APDE settings and compile on android 9, will it then work fine on android 4.1?

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [May 27, 2021, 12:23pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/165 "2021-05-27T12:23:42Z")

</div>

> [@ZENAR57](#):
>
> the APDE settings and compile on android 9, will it then work fine on android 4.1?

maybe works because you are dealing with application not code i think it works try

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [May 27, 2021, 12:29pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/166 "2021-05-27T12:29:17Z")

</div>

@ZENAR57 listen

when you deal with ready code like this

```auto
import org.slf4j.*;
import org.slf4j.helpers.*;
import com.hoho.android.usbserial.util.*;
import com.yourinventit.processing.android.serial.*;
import org.slf4j.spi.*;
import com.hoho.android.usbserial.driver.*;
import org.slf4j.impl.*;

```

delete the ready made imported library from the sketch and import it once again

[Previous page](https://discourse.processing.org/t/apde-usb-otg-communication/30114.md?page=8)
