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

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

</div>

click the three dots in the top right and choose tools, then add library, then follow the menus.

---

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

</div>

hi how you doing

i did import many libraries before but this looks different

 ![Screenshot_2021-05-12-05-24-13-269](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/5/5457b58c71384c075503164bb7cb950b4f401935.jpeg)

---

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

</div>

click the three dots in the top right

---

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

</div>

For example, here there is a jar file with the same name of the library, but in Android serial Library does not exist

 ![Screenshot_2021-05-12-05-29-02-148](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/a/a0ff70bed386be42e074a475c0ab26c1cfabac70.jpeg)  
 ![Screenshot_2021-05-12-05-28-09-868](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/9/90a93e95572d44e04fb87af7465b32426194d363.jpeg)

---

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

</div>

You can just add the jar to android using your pc or downloading using your phone. Apde does allow you to browse.

Three dots\>tools\>manage library\>three dots\>install compressed lib

---

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

</div>

I have got this

 ![Screenshot_2021-05-12-05-55-53-980](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/5/5565b435319d46c371474bf6e733e4b6f3244d2b.jpeg)

---

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

</div>

Gotta make sure the lib has a zip extension otherwise not sure how else to help

---

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

</div>

Usually I follow this procedure

1. If the library is in a ZIP or other type of compressed file, then extract it.
2. Copy the extracted folder to the libraries folder in the Sketchbook folder and rename it to the desired name of the library., e.g. “path/to/Sketchbook/libraries/Ketai/”.
3. Ensure that the library JAR file is located in the “library” folder in the library’s folder with the same name as the enclosing folder, e.g. “Ketai/library/Ketai.jar”. Copy any additional JAR files to this folder.
4. Optionally, ensure that the library’s examples are located in the “examples” folder in the library’s folder, e.g. “Ketai/examples/”.
5. Optionally, ensure that the “library.properties” file is located at the root of the library’s folder, e.g. “Ketai/library.properties”.
6. Create a new folder at the same level as the “library” folder with the name “library-dex”, e.g. “Ketai/library-dex/”.
7. Open APDE and navigate to (action overflow) \> Tools \> Import Library \> Manage Libraries \> (action overflow) \> DX Dexer. Note: The library should already appear in the list, but it has not been fully installed yet.
8. In the “Input File” text box, enter the path to the library JAR file, e.g. “path/to/Sketchbook/libraries/Ketai/library/Ketai.jar”. You may use the file select button to aid in locating this file.
9. In the “Output File” text box, enter the same path as above, but change the “library” folder to “library-dex” and change the library JAR file to " _libraryName_ -dex.jar", e.g. “path/to/Sketchbook/libraries/Ketai/library-dex/Ketai-dex.jar”.
10. Press the “Dex” button. Wait for the dexing process to complete.
11. Repeat steps 7 through 10 for any additional library JAR files.
12. When the dialog closes, the library has been fully installed. It will now be automatically added to any sketch with the import statements at the top.

> **[Calsign/APDE - 
Installation Steps](https://github.com/Calsign/APDE/wiki/Installing-Contributed-Libraries#installation-steps-1)**
>
> Installing-Contributed-Libraries

---

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

</div>

That would appear to be correct, not sure what else to suggest if that fails though

---

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

</div>

@[paulgoux](https://discourse.processing.org/u/paulgoux)

thanks for your response ❤ ❤ ❤

---

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

</div>

@ZENAR57

i think you do not need to generate this tow files they are already existing in the library it self you need to modify them

here is the location on window

libraries\AndroidSerial\usbSerialExamples\src\main  
libraries\AndroidSerial\usbSerialExamples\src\main\res\xml

 ![Untitled 168](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/f/fa3f6091bb89b9c81eb27b6a28f78ffaf749307f.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 12, 2021, 3:29am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/112 "2021-05-12T03:29:20Z")

</div>

here is the location on android

 ![Screenshot_2021-05-12-06-25-51-040](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/b/bd3420e38cf4676be9e9abd3e064c81f544fe267.jpeg)  
 ![Screenshot_2021-05-12-06-24-26-827](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/6/6ff1fb02cbdeae36d546ad9e25f31041a3052c95.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, 7:09am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/113 "2021-05-12T07:09:27Z")

</div>

> [@jafal](#):
>
> i think you do not need to generate this tow files they are already existing in the library it self you need to modify them

modify?  
everything inside the files is correct.  
I have seen these files in libraries, but when programming in android I do not see any use of information from these files. I can break the actually created apk of the project, see what’s inside, and see the real manifest. (APKEditor)

---

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

</div>

@ZENAR57

how did you import the serial library to APDE

---

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

</div>

The manifest is required to inform android about the activities present in the sketch and other things. The code inside can get a lot more involved especially as you can use it to create buttons a gui elements.

A beginners guide in android is a good place to start and if you can wrap youre head around intent context fragment and activity it will deffo help.

However most of this is somewhat unecessary, most of the android code ive put together makes use of these things yet i do not know 100% what things go where, and have found that appying simple programming logic about variables and methods leads to something that will work.

In any case youll always need an xml file to pass info to your main activity.

---

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

</div>

> [@jafal](#):
>
> how did you import the serial library to APDE

 ![Polish_20210512_102110561](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/5/5a6a42523d460dd22b06035824e3a840f8be75a9.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 12, 2021, 7:26am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/117 "2021-05-12T07:26:51Z")

</div>

@ZENAR57 which one you download

---

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

</div>

@paulgoux you are true but the serial library has unclear documentation

what this mean if you can explain to me and how to do it

```auto
Add jitpack.io repository to your root build.gradle:

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

```

and this what is it and how to do it

```auto
Add library to dependencies

dependencies {
    implementation 'com.github.mik3y:usb-serial-for-android:3.3.1'
}

```

> **[mik3y/usb-serial-for-android](https://github.com/mik3y/usb-serial-for-android)**
>
> Android USB host serial driver library for CDC, FTDI, Arduino and other devices.

---

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

</div>

> [@jafal](#):
>
> which one you download

these are my files, downloaded from GitHub for a long time

---

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

</div>

@ZENAR57 give me the link of it

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

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