# No serial library Processing for smartphone. Help

**URL:** https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870
**Category:** Processing for Android
**Created:** [May 5, 2021, 9:34am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870 "2021-05-05T09:34:04Z")
**Posts on this page:** 20
**Page:** 10

<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 13, 2021, 11:57pm UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/181 "2021-05-13T23:57:07Z")

</div>

I read I understand

> [@jafal](#):
>
> build.gradle

where’s the place? Not found!

> [@paulgoux](#):
>
> - 1 create new sketch.
> - 2 change the sketch name
> 
> ![Screenshot_20210512_100335_com.calsignlabs.apde](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/6/60ae06ec87593f44b8e361394e1450335b70341c.jpeg)

It’s beautiful!  
the whole folder outside has formed, APDE5.2

[![](https://img.youtube.com/vi/T85_DxDLT9U/maxresdefault.jpg "APDE5.2 sketch in not internal folder") ](https://www.youtube.com/watch?v=T85_DxDLT9U)

 ![Screenshot_20210514_013330](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/c/c315a0b997054b0cdbe9a1dab7042cc5894fb562.jpeg)

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 14, 2021, 12:01am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/182 "2021-05-14T00:01:09Z")

</div>

Let me explain something to you

In the processing system for Windows, there is also an Android system. You can design applications and transfer them as a phone application and dispense with Windows afterwards.

Working from Windows is much easier than applying to phone application and the end result is the same as you get through the APDE application.  
If you don’t have a computer, you can borrow

I felt that you might not know this point because of the reason I said it to you  
ِ  
same result on Windows is same on Android APDE both gives android ِ APK

---

<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 14, 2021, 12:11am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/183 "2021-05-14T00:11:40Z")

</div>

i did compile sketch with processing it generated automatically

 ![Untitled 172](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/2/24a02f019ff6debddd64127aa1cff25bf599996b.jpeg)

---

<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 14, 2021, 12:13am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/184 "2021-05-14T00:13:01Z")

</div>

> [@jafal](#):
>
> If you don’t have a computer, you can borrow

I am forever forbidden to use any computers. But I have a phone and sometimes a tablet, I want to write several programs to communicate with microcontrollers. I have no choice.

---

<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 14, 2021, 12:46am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/185 "2021-05-14T00:46:08Z")

</div>

> **Summary**
>
> ![images (1)](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/6/61f0ce613e1859171d3a474a6756e96015f2332c.jpeg)
> 
> this is not my first or even my second home computer, I started with more ancient  
> ![932071be548a6dab761572b7861d9144](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/6/65aade6b628a87d019101dbeaeed33cd19b6cc4d.jpeg)

---

<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 14, 2021, 12:54am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/186 "2021-05-14T00:54:06Z")

</div>

as i said before the main issue is how to setup the library

and the sketch requirements

---

<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 14, 2021, 12:58am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/187 "2021-05-14T00:58:14Z")

</div>

@paulgoux

can you explain how to add this step to the sketch

Add library to dependencies

dependencies {  
implementation ‘com.github.mik3y:usb-serial-for-android:3.3.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 14, 2021, 1:05am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/188 "2021-05-14T01:05:52Z")

</div>

> [@ZENAR57](#):
>
> Summary

i have worked with XT PC with 6 mhz speed it was with 4 megabyte harddrive with monochrome green screen 😄 😄 😄 😄 😄 😄 😄 😄 ❤ ❤ ❤ ❤ ❤

---

<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 14, 2021, 1:18am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/189 "2021-05-14T01:18:18Z")

</div>

> **Summary**
>
> > [@jafal](#):
> >
> > XT PC
> 
> yes it’s a rocket!
> 
> “specialist”+TV\<-made in USSR  
> “ZX-spectrum”+TV \<-made in USSR  
> “EC-1840” \<-made in USSR  
> XT, 286,386 SX, 386, 486…  
> …PENTIUM IV WINDOWS XP OR 2000 **STOP**  
> **WIFE**  
> Here I am a little behind technical progress, by 20 years.  
> 🙂

---

<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 14, 2021, 1:19am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/190 "2021-05-14T01:19:25Z")

</div>

clearly understood.  
I move in three directions. Since programming is not my strong point, I choose to modify apk and the file system, I made a root on the old phone and got normal access to everything. at the same time I read and understand what you write to me here, as far as I understand. I haven’t programmed for 20 years. Then there was linear programming, now object programming is a big difference, although the operators are the same. It’s still difficult for me.  
And I do all this on my small screen phone.

---

<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 14, 2021, 1:27am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/191 "2021-05-14T01:27:36Z")

</div>

> [@ZENAR57](#):
>
> clearly understood.  
> I move in three directions. Since programming is not my strong point, I choose to modify apk and the file system, I made a root on th

processing is very easy but need practicing

---

<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 14, 2021, 1:53am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/192 "2021-05-14T01:53:48Z")

</div>

> [@jafal](#):
>
> but need practicing

I’ve been training for a week now. I didn’t draw flying balls and cubes, I need to update my old systems with microcontrollers.  
The examples for the computer are clear and understandable, but they did not work on the phone, so I had to figure it out. I thought it would be quick. I accidentally learned about the processing from a video on YouTube, it suits me perfectly for my tasks. It is especially great that it is multiplatform (phones, microcontrollers, computers), I do not have the opportunity to learn many languages, I have neither the time nor the energy, I hope that this is the last language that I will master for myself.

---

<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 14, 2021, 1:55am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/193 "2021-05-14T01:55:21Z")

</div>

> [@jafal](#):
>
> processing is very easy

especially after assembler!!!  
😀

---

<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 14, 2021, 1:59am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/194 "2021-05-14T01:59:55Z")

</div>

edit any manifest

[![](https://img.youtube.com/vi/EbIGDBhFg0k/hqdefault.jpg "Edit manifest") ](https://www.youtube.com/watch?v=EbIGDBhFg0k)

if you add more lines, then it starts looking for a file device\_filter.xml that cannot be added and an error.

---

<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 14, 2021, 2:02am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/195 "2021-05-14T02:02:37Z")

</div>

> [@ZENAR57](#):
>
> especially after assembler!!!

yes sure

it is close to basic language next for goto line etc 😄

---

<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 14, 2021, 2:21am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/196 "2021-05-14T02:21:17Z")

</div>

@ZENAR57

@glv is Very smart and has extensive experience with Arduino and a great programmer

And he has a tremendous amount of ideas that I think can provide the needed help for this topic

@paulgoux also has great knowledge with Android

---

<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 14, 2021, 3:01am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/197 "2021-05-14T03:01:36Z")

</div>

Here is an all in one solution to save and read files on android. It might be restricted in some locations but for it writes to external storage no problem and will request permissions for you. Also I have packaged the permission class inside of the jar so if you want to you can simply call a new permission as follows;

> **[paulgoux/fileWriter-Android](https://github.com/paulgoux/fileWriter-Android)**
>
> file writer reader for android. Contribute to paulgoux/fileWriter-Android development by creating an account on GitHub.

```auto
Permission p;

void setup(){
p = new Permission("CAMERA");
}

```

make sure your permission is also requested in your ide, whichever version that is. No need to make any changes to the xml file, good to go from the start.

---

<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 14, 2021, 4:56am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/198 "2021-05-14T04:56:00Z")

</div>

The serial library programmer has an application on the playstore that uses the same library i connected Arduino and recognized it so fast

> **[kai-morich/SimpleUsbTerminal](https://github.com/kai-morich/SimpleUsbTerminal)**
>
> Android terminal app for devices with a serial / UART interface connected with a USB-to-serial-converter

 ![Screenshot_2021-05-14-07-48-40-942](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/4/441e8b94180f9e50bf7ecb0e7fd442d52be9d3f9.jpeg)  
 ![Screenshot_2021-05-14-07-54-12-929](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/a/a0c5cad1915c826194f87947f5934cfd191af439.jpeg)  
 ![Screenshot_2021-05-14-07-50-57-069](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/4/4592569a64b2d50a186017453e0cdfa16f100830.jpeg)  
 ![Screenshot_2021-05-14-07-49-47-176](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/3/325476b4a25d1727b1a84c42b7c8444beb1899c7.jpeg)  
 ![Screenshot_2021-05-14-07-49-06-489](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/8/8315d69c6b0db5d456eadfb9a567e16306df3b34.jpeg)

---

<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 14, 2021, 5:15am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/199 "2021-05-14T05:15:49Z")

</div>

I found this file in the application usb\_device\_filter

and here is the extension  
SimpleUsbTerminal-master\app\src\main\res\xml

```auto
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <!-- - - - default prober - - - -->

    <!-- 0x0403 / 0x60??: FTDI -->
    <usb-device vendor-id="1027" product-id="24577" /> <!-- 0x6001: FT232R -->
    <usb-device vendor-id="1027" product-id="24592" /> <!-- 0x6010: FT2232H -->
    <usb-device vendor-id="1027" product-id="24593" /> <!-- 0x6011: FT4232H -->
    <usb-device vendor-id="1027" product-id="24596" /> <!-- 0x6014: FT232H -->
    <usb-device vendor-id="1027" product-id="24597" /> <!-- 0x6015: FT230X, FT231X, FT234XD -->

    <!-- 0x10C4 / 0xEA??: Silabs CP210x -->
    <usb-device vendor-id="4292" product-id="60000" /> <!-- 0xea60: CP2102 and other CP210x single port devices -->
    <usb-device vendor-id="4292" product-id="60016" /> <!-- 0xea70: CP2105 -->
    <usb-device vendor-id="4292" product-id="60017" /> <!-- 0xea71: CP2108 -->

    <!-- 0x067B / 0x2303: Prolific PL2303 -->
    <usb-device vendor-id="1659" product-id="8963" />

    <!-- 0x1a86 / 0x?523: Qinheng CH34x -->
    <usb-device vendor-id="6790" product-id="21795" /> <!-- 0x5523: CH341A -->
    <usb-device vendor-id="6790" product-id="29987" /> <!-- 0x7523: CH340 -->

    <!-- CDC driver -->
    <usb-device vendor-id="9025" /> <!-- 0x2341 / ......: Arduino -->
    <usb-device vendor-id="5824" product-id="1155" /> <!-- 0x16C0 / 0x0483: Teensyduino -->
    <usb-device vendor-id="1003" product-id="8260" /> <!-- 0x03EB / 0x2044: Atmel Lufa -->
    <usb-device vendor-id="7855" product-id="4" /> <!-- 0x1eaf / 0x0004: Leaflabs Maple -->
    <usb-device vendor-id="3368" product-id="516" /> <!-- 0x0d28 / 0x0204: ARM mbed -->

    <!-- - - - custom prober - - - -->

    <!-- CDC driver -->
    <usb-device vendor-id="5840" product-id="2174" /> <!-- 0x16d0 / 0x087e: Digispark -->
</resources>

```

---

<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 14, 2021, 5:44am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/200 "2021-05-14T05:44:20Z")

</div>

and here is Android Studio project

> **[【フィットネスバイク】のインターネットを作る！！ - Qiita](https://qiita.com/ie4/items/130308793444bd98179f)**
>
> ※書き足りないので、少しずつ更新していきます
> 
> 取り急ぎ触ってみたい！という人に向けて『専用アダプター』をBOOTHで販売開始しました。匿名配送で安心の【あんしんBOOTHパック】対応です。
> Androidアプリの方も、準備中です。
> ...

[Previous page](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870.md?page=9)

[Next page](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870.md?page=11)
