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

<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 12, 2021, 9:34am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/141 "2021-05-12T09:34:30Z")

</div>

no statement i have install it last year with same procedure but i made it twice for each jar file otherwise it wont run

---

<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 12, 2021, 9:39am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/142 "2021-05-12T09:39:38Z")

</div>

> [@paulgoux](#):
>
> just use the latest version. I’ve posted a full guide above to install libraries, and so has Jafal. I understand you may be struggling, but the solution is there.
> 
> With both of these posts you should be able to
> 
> A add permissions.  
> B add libraries.
> 
> Please make sure to follow the instructions carefully, and report any problems.

![yes](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/4/426400f253ca90bff071ef8a1d4d3082d9ab0f3e.gif)

---

<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 12, 2021, 9:45am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/143 "2021-05-12T09:45:47Z")

</div>

@ZENAR57 a way from serial take look at this

> [@Solving touch issue](https://discourse.processing.org/t/solving-touch-issue/28152):
>
> the controlP5 library works fine on pc but on android smartphones there is touch issue the sliders conflicted with each other because using touch not mouse for instance if you drag slider bar and left it then touch else where on lcd the slider still activated and change its position i made my first project for android but i was using pc when i transferred to android on my tablet i was shocked did not expected the slider issue after month of searching i find how to make it done i have found o…

---

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

</div>

> [@jafal](#):
>
> look at this

![yes](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/4/426400f253ca90bff071ef8a1d4d3082d9ab0f3e.gif)

---

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

</div>

![woman_facepalming_animated_sticker](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/f/fab99de69058429237961e06f6d386bf8d60b12e.gif)

---

<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 12, 2021, 10:19am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/146 "2021-05-12T10:19:27Z")

</div>

yes that is true i did post photo up but you did not notice it

> [@ZENAR57](#):
>
> **APDE Ver5.х no create MANIFEST file(probably because of the preview)**
> 
> **APDE Ver4.х create MANIFEST file**
> 
> **APDE Ver3.х -???**

---

<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 12, 2021, 10:20am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/147 "2021-05-12T10:20:45Z")

</div>

coding is hard and some struggle to learn, but if i can give some positivity, its that after a while eventually things begin to make sense, then all those things we struggled with become understanding.

---

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

</div>

> [@paulgoux](#):
>
> coding is hard and some struggle to learn, but if i can give some positivity,

yes but there is many here are creatives

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [May 12, 2021, 10:37am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/149 "2021-05-12T10:37:41Z")

</div>

@ZENAR57 Did you get serial working in your development environment (APDE, Android only and no PC)?

> [@ZENAR57](#):
>
> Have you actually started serial data transfer using these libraries in practice?

I have now!  
I did this with Processing for Android (development on PC) to test the library.

I followed instructions on this site:

> **[GitHub - inventit/processing-android-serial: Android Serial Library for...](https://github.com/inventit/processing-android-serial)**
>
> Android Serial Library for Processing. Contribute to inventit/processing-android-serial development by creating an account on GitHub.

I got an OTG cable yesterday.

I wrote a very minimal sketch:

- Arduino Mega is is counting up and sending data every 500ms.
- Android is receiving and display count to the screen.

It is working!

I may try your approach in the future but not anytime soon. I am very busy these days.

`:)`

---

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

</div>

> [@glv](#):
>
> development on PC

![2021_05_12_14_10_51](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/e/e1a86ae5d1e7f109f2e03d0da2376e44f9163d74.gif)  
**APDE processing only,  
from the beginning to the end.**  
the problem of library operability is no longer considered and faded into the background. Having problems editing apk access rights to hardware resources,without resorting to the help of a computer at all.

---

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

</div>

> [@jafal](#):
>
> yes that is true i did post photo up but you did not notice it

I probably missed it, it’s a pity, I had to spend time to figure it out 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 12, 2021, 10:45pm UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/152 "2021-05-12T22:45:20Z")

</div>

no result yet.  
I’ll try again tomorrow.  
 ![suicide](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/7/7f3c463d7375900a3a7707c63e9d52cfd33485cf.gif)

---

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

</div>

@ZENAR57 look what I am running with tablet  
Logic analyzer  
Microcontroller programmer  
Rtl sdr  
Oscilloscope  
Even my CNC and my 3d printer all gots APK

 ![Screenshot_2021-05-13-02-07-50-738](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/2/2316f4b05e9cba75cb71489c5ad6cd203478bf6d.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 12, 2021, 11:23pm UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/154 "2021-05-12T23:23:03Z")

</div>

you have a computer and everything that worked for you was the result of the computer’s help. Try to do everything with a blank slate without touching the computer.  
I also have everything working in hardware, I can receive and transmit data from other programs. but can’t use APDE processing.

---

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

</div>

i am making search how to link otg or usb with APDE if i got something worth i am going to post it also i am trying some codes

---

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

</div>

![20210513_024358](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/7/7c242d9f784fbe98e6f5c735bdf4bb2c855cf5e0.gif)

---

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

</div>

> [@ZENAR57](#):
>
> device\_filter.xml

this file is not that big issue it is used just if you want the sketch to indicate if the Arduino connected or not so if you have the suit setting of the library and working code you do not need this file

**2.** If the app should be notified when a device is attached, add [device\_filter.xml](https://github.com/mik3y/usb-serial-for-android/blob/master/usbSerialExamples/src/main/res/xml/device_filter.xml) to your project’s `res/xml/` directory and configure in your `AndroidManifest.xml` .

---

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

</div>

> [@jafal](#):
>
> device\_filter.xml to your project’s `res/xml/` directory and configure in your `AndroidManifest.xml`

I can’t cram it, I’ve tried it so many times.  
Try it yourself without touching the computer.

---

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

</div>

> [@ZENAR57](#):
>
> I can’t cram it, I’ve tried it so many times.  
> Try it yourself without touching the computer.

i am going to try it

---

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

</div>

> [@jafal](#):
>
> i am going to try it

Ok.  
It just didn’t work out for me.

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

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