# Processing for Android

**URL:** https://discourse.processing.org/c/processing-android/12.md?no_subcategories=false&page=25

[Latest](https://discourse.processing.org/latest.md) · [Categories](https://discourse.processing.org/categories.md) · [Tags](https://discourse.processing.org/tags.md)

**Page:** 26

---

## [Convert Code to Android](https://discourse.processing.org/t/convert-code-to-android/10788)

<div class="topic-metadata">

**Author:** [@mcd4u](https://discourse.processing.org/u/mcd4u)\
**Replies:** 1\
**Last updated:** [May 1, 2019, 7:52am UTC](https://discourse.processing.org/t/convert-code-to-android/10788 "2019-05-01T07:52:44Z")

</div>

Hi, Is it possible to convert/compile code written in an IDE (using processing’s jar) to an Android apk? Or do all of my classes need to be in .pde and then convert it? Thanks!

---

## [Help with reset a int\[\] and multiple screens](https://discourse.processing.org/t/help-with-reset-a-int-and-multiple-screens/10707)

<div class="topic-metadata">

**Author:** [@Nick1](https://discourse.processing.org/u/Nick1)\
**Replies:** 17\
**Last updated:** [April 29, 2019, 3:20pm UTC](https://discourse.processing.org/t/help-with-reset-a-int-and-multiple-screens/10707 "2019-04-29T15:20:09Z")

</div>

Hey, guys i got an question about my code i want to reset the int \[\] hinder so that the objects arre resettet when i make back=true. Is it possible to make processing by my android things multiple screens because on my p…

---

## [Saving instance state](https://discourse.processing.org/t/saving-instance-state/10535)

<div class="topic-metadata">

**Author:** [@Sarrio](https://discourse.processing.org/u/Sarrio)\
**Replies:** 4\
**Last updated:** [April 22, 2019, 9:01am UTC](https://discourse.processing.org/t/saving-instance-state/10535 "2019-04-22T09:01:39Z")

</div>

I’m writing a simple game using processing core library in android studio. I set up the project following the Developing with Android Studio tutorial and everything works fine. In particular in my project there is a m…

---

## [The compilation is normal in JAVA mode, but the program is wrong in Android mode. How to solve it?](https://discourse.processing.org/t/the-compilation-is-normal-in-java-mode-but-the-program-is-wrong-in-android-mode-how-to-solve-it/10537)

<div class="topic-metadata">

**Author:** [@aienzer](https://discourse.processing.org/u/aienzer)\
**Replies:** 1\
**Last updated:** [April 22, 2019, 8:43am UTC](https://discourse.processing.org/t/the-compilation-is-normal-in-java-mode-but-the-program-is-wrong-in-android-mode-how-to-solve-it/10537 "2019-04-22T08:43:04Z")

</div>

Build folder: C:\\Users\\aienz\\AppData\\Local\\Temp\\android7567665112136503492sketch Unzipping C:\\Users\\aienz.gradle\\wrapper\\dists\\gradle-4.3-bin\\452wx51oxqsia28686mgqhot6\\gradle-4.3-bin.zip to C:\\Users\\aienz.gradle\\wrapp…

---

## [Processing eating storage](https://discourse.processing.org/t/processing-eating-storage/10507)

<div class="topic-metadata">

**Author:** [@luuk](https://discourse.processing.org/u/luuk)\
**Replies:** 2\
**Last updated:** [April 21, 2019, 8:20am UTC](https://discourse.processing.org/t/processing-eating-storage/10507 "2019-04-21T08:20:23Z")

</div>

Hello there, I’ve started to try to get started with Processing for Android today. However what’s really bothering me is the amount of storage it takes up on my laptop. Every time I run a sketch to my android device, I …

---

## [controlP5 button double tap problem](https://discourse.processing.org/t/controlp5-button-double-tap-problem/10033)

<div class="topic-metadata">

**Author:** [@jbnnx](https://discourse.processing.org/u/jbnnx)\
**Replies:** 1\
**Last updated:** [April 8, 2019, 1:52am UTC](https://discourse.processing.org/t/controlp5-button-double-tap-problem/10033 "2019-04-08T01:52:01Z")

</div>

hi I’m using buttons to switch states and in Java it works fine but when I run my sketch on AndroidMode, I need to double tap to activate the button. Does anyone knows how to fix this? here is my code: final int state…

---

## [Show all stored files with given extension](https://discourse.processing.org/t/show-all-stored-files-with-given-extension/9789)

<div class="topic-metadata">

**Author:** [@John56](https://discourse.processing.org/u/John56)\
**Replies:** 3\
**Last updated:** [March 30, 2019, 3:39pm UTC](https://discourse.processing.org/t/show-all-stored-files-with-given-extension/9789 "2019-03-30T15:39:08Z")

</div>

Hello community, I have nearly finished my first android app using Processing 3 for android. This app uses the command saveStrings(string,filename) to store textfiles with extension .txt wchich works fine. In processing…

---

## [External device selection](https://discourse.processing.org/t/external-device-selection/9757)

<div class="topic-metadata">

**Author:** [@Pete\_r61](https://discourse.processing.org/u/Pete_r61)\
**Replies:** 1\
**Last updated:** [March 30, 2019, 12:49pm UTC](https://discourse.processing.org/t/external-device-selection/9757 "2019-03-30T12:49:01Z")

</div>

Hello, Although my external device shows up in menu option Android\>Devices, it is not selectable by mouseclick, although the device is colored blue. The selector sticks with the Genymotion emulation of Google device. I…

---

## [Animating Gif for Android](https://discourse.processing.org/t/animating-gif-for-android/9738)

<div class="topic-metadata">

**Author:** [@braingames](https://discourse.processing.org/u/braingames)\
**Replies:** 1\
**Last updated:** [March 30, 2019, 10:08am UTC](https://discourse.processing.org/t/animating-gif-for-android/9738 "2019-03-30T10:08:29Z")

</div>

Hi I am trying to animate a gif on an Android using processing, but for some reason my gif isn’t being loaded. This is a simple code example from the Android example library. /\*\* Sequential by James Patterson. Displ…

---

## [Using Save() Methods](https://discourse.processing.org/t/using-save-methods/9742)

<div class="topic-metadata">

**Author:** [@markcosmic](https://discourse.processing.org/u/markcosmic)\
**Replies:** 0\
**Last updated:** [March 29, 2019, 3:08am UTC](https://discourse.processing.org/t/using-save-methods/9742 "2019-03-29T03:08:40Z")

</div>

This vexed me for a bit. Most of the solution were incomplete or too wordy. This is it in a nutshell: To save data on an Android using, saveTable(), saveStrings(), etc. This is how to do it. String\[\] data; …

---

## [VR Mode: text() causes OpenGL error](https://discourse.processing.org/t/vr-mode-text-causes-opengl-error/9593)

<div class="topic-metadata">

**Author:** [@AndreaRibo](https://discourse.processing.org/u/AndreaRibo)\
**Replies:** 1\
**Last updated:** [March 26, 2019, 7:22am UTC](https://discourse.processing.org/t/vr-mode-text-causes-opengl-error/9593 "2019-03-26T07:22:23Z")

</div>

While using the VR mode with the Processing-Android, I need to display a text. There are no problems if I just use the text function: translate(width/2, height/2); text(“MyText”, 0, 0); But, if I’m going to draw …

---

## [KetaiBluetooth trouble on bt connection](https://discourse.processing.org/t/ketaibluetooth-trouble-on-bt-connection/9582)

<div class="topic-metadata">

**Author:** [@Bertolino](https://discourse.processing.org/u/Bertolino)\
**Replies:** 0\
**Last updated:** [March 24, 2019, 5:20pm UTC](https://discourse.processing.org/t/ketaibluetooth-trouble-on-bt-connection/9582 "2019-03-24T17:20:06Z")

</div>

Hello, I am using the Ketai library in order to do a simple bluetooth connection with my Arduino device but I am not able to get it connected. I have already accomplished to connect using the Serial Bluetooth app. So …

---

## [A sound play exemplar please?](https://discourse.processing.org/t/a-sound-play-exemplar-please/416)

<div class="topic-metadata">

**Author:** [@gpteacher](https://discourse.processing.org/u/gpteacher)\
**Replies:** 13\
**Last updated:** [March 22, 2019, 5:23am UTC](https://discourse.processing.org/t/a-sound-play-exemplar-please/416 "2019-03-22T05:23:32Z")

</div>

I’ve spent the last several days scouring the web for WORKING examples of playing .mp3 and .wav files in Processing for Android. Most of the examples no longer work or have ‘deprecated function’ on one of the classes. I…

---

## [Android mode: Lost connection with device while installing](https://discourse.processing.org/t/android-mode-lost-connection-with-device-while-installing/9340)

<div class="topic-metadata">

**Author:** [@Schred](https://discourse.processing.org/u/Schred)\
**Replies:** 3\
**Last updated:** [March 18, 2019, 2:07am UTC](https://discourse.processing.org/t/android-mode-lost-connection-with-device-while-installing/9340 "2019-03-18T02:07:56Z")

</div>

Hi! I’m trying to get the android mode to work on my computer, but keep getting the errror message: “Lost connection with device while installing”. I’ve seen other people posting about this, but none of the answers work…

---

## [Problem with running sketch on Processing for Android](https://discourse.processing.org/t/problem-with-running-sketch-on-processing-for-android/9328)

<div class="topic-metadata">

**Author:** [@alexanecula](https://discourse.processing.org/u/alexanecula)\
**Replies:** 12\
**Last updated:** [March 15, 2019, 8:58pm UTC](https://discourse.processing.org/t/problem-with-running-sketch-on-processing-for-android/9328 "2019-03-15T20:58:27Z")

</div>

Hi! I’m new in this whole programming thing and I’ve started working on Processing(Java and Android) a few weeks ago. I’ve followed a tutorial from YouTube and wanted to try it, too. The thing is when I tried to run th…

---

## [Performance probelms - drawing to much stuff?](https://discourse.processing.org/t/performance-probelms-drawing-to-much-stuff/9301)

<div class="topic-metadata">

**Author:** [@Schred](https://discourse.processing.org/u/Schred)\
**Replies:** 2\
**Last updated:** [March 15, 2019, 3:45pm UTC](https://discourse.processing.org/t/performance-probelms-drawing-to-much-stuff/9301 "2019-03-15T15:45:33Z")

</div>

Hi! I have some bad fps problems with my current project. It is supposed to run on mobile devices, but only has about 5 fps when ran. I draw a lot of stuff on the screen, but there’s no way around that as it consists of…

---

## [enableFlash() with KetaiCamera](https://discourse.processing.org/t/enableflash-with-ketaicamera/9017)

<div class="topic-metadata">

**Author:** [@garrettlynch](https://discourse.processing.org/u/garrettlynch)\
**Replies:** 1\
**Last updated:** [March 8, 2019, 10:32am UTC](https://discourse.processing.org/t/enableflash-with-ketaicamera/9017 "2019-03-08T10:32:59Z")

</div>

Anyone here worked with KetaiCamera? I’m trying to turn the flash on and off with mousePressed() and mouseReleased() but it only works the first time unless I dispose of the camera each time I turn the flash off (see co…

---

## [TemperatureTellerApp](https://discourse.processing.org/t/temperaturetellerapp/8937)

<div class="topic-metadata">

**Author:** [@ksaloni](https://discourse.processing.org/u/ksaloni)\
**Replies:** 1\
**Last updated:** [March 6, 2019, 10:30am UTC](https://discourse.processing.org/t/temperaturetellerapp/8937 "2019-03-06T10:30:43Z")

</div>

This will tell the temperature of devices like mobile phones, laptops etc. when they get too hot so that user will shut them down.

---

## [Save File in APDE](https://discourse.processing.org/t/save-file-in-apde/8887)

<div class="topic-metadata">

**Author:** [@Janvonfalken](https://discourse.processing.org/u/Janvonfalken)\
**Replies:** 3\
**Last updated:** [March 4, 2019, 10:11am UTC](https://discourse.processing.org/t/save-file-in-apde/8887 "2019-03-04T10:11:40Z")

</div>

I am trying to save a highscore in APDE. I am currently trying to create the file File highscoreData= new File("//storage/emulated/0/JGameData","highscore.txt"); if (highscoreData.exists()){ highscore=0; hig…

---

## [Overlay horizon line in camera and save pitcture](https://discourse.processing.org/t/overlay-horizon-line-in-camera-and-save-pitcture/4258)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 9\
**Last updated:** [March 4, 2019, 8:51am UTC](https://discourse.processing.org/t/overlay-horizon-line-in-camera-and-save-pitcture/4258 "2019-03-04T08:51:24Z")

</div>

Here’s a rough sketch of what I want to do, but don’t really know how. The image is taken with a small device called a Bris Sextant. It makes multiple images of the sun. As the sun rises or sets, different sun images …

---

## [Using admob ads in processing](https://discourse.processing.org/t/using-admob-ads-in-processing/7997)

<div class="topic-metadata">

**Author:** [@boldi999](https://discourse.processing.org/u/boldi999)\
**Replies:** 37\
**Last updated:** [February 28, 2019, 12:14pm UTC](https://discourse.processing.org/t/using-admob-ads-in-processing/7997 "2019-02-28T12:14:25Z")

</div>

Hi everyone, I’m trying to use admob in my app, I downloaded this simple code: https://discourse.processing.org/t/implementing-ads-with-admob/2935 with the jar file and xml file. It’s compiled and built without any prob…

---

## [How does processing deploy an android apk](https://discourse.processing.org/t/how-does-processing-deploy-an-android-apk/8761)

<div class="topic-metadata">

**Author:** [@theinfo](https://discourse.processing.org/u/theinfo)\
**Replies:** 0\
**Last updated:** [February 27, 2019, 11:01am UTC](https://discourse.processing.org/t/how-does-processing-deploy-an-android-apk/8761 "2019-02-27T11:01:09Z")

</div>

I know that the JVM (Java Virtual Machine) interprets/compiles the bytecode into platform specific code.Even processing uses Java to write sketches but how does it make an apk? Just quite inquisitive about the inner wor…

---

## [Android build fail(windows)(selectInput() and selectOutput() on android)](https://discourse.processing.org/t/android-build-fail-windows-selectinput-and-selectoutput-on-android/4372)

<div class="topic-metadata">

**Author:** [@Bunnygamers](https://discourse.processing.org/u/Bunnygamers)\
**Replies:** 11\
**Last updated:** [February 21, 2019, 5:58pm UTC](https://discourse.processing.org/t/android-build-fail-windows-selectinput-and-selectoutput-on-android/4372 "2019-02-21T17:58:32Z")

</div>

I was trying to build something for a android phone, but i got an error that said there’s an error with selectInput(blah,blah); and selectOutput(blah,blah); so, i want to ask if someone knows how to ask for files…

---

## [Error: 'failed to create directory'](https://discourse.processing.org/t/error-failed-to-create-directory/7953)

<div class="topic-metadata">

**Author:** [@iampadik](https://discourse.processing.org/u/iampadik)\
**Replies:** 5\
**Last updated:** [February 21, 2019, 7:49am UTC](https://discourse.processing.org/t/error-failed-to-create-directory/7953 "2019-02-21T07:49:25Z")

</div>

Probably this question might have been asked too many times already. But I am not able to find the solution for once. I am running a very simple code in Processing 3.5.2 on windows 7 in android mode. The code is as follo…

---

## [Error converting bytecode to dex](https://discourse.processing.org/t/error-converting-bytecode-to-dex/8507)

<div class="topic-metadata">

**Author:** [@mjmaleki](https://discourse.processing.org/u/mjmaleki)\
**Replies:** 1\
**Last updated:** [February 19, 2019, 5:56am UTC](https://discourse.processing.org/t/error-converting-bytecode-to-dex/8507 "2019-02-19T05:56:03Z")

</div>

I just start “android mode” in processing. when i import “g4p\_controls.\*” library this error showed up when trying to compile an app that was previously working in “java mode”: Error:Error converting bytecode to dex: …

---

## [Serial communication between android and microcontroller](https://discourse.processing.org/t/serial-communication-between-android-and-microcontroller/8480)

<div class="topic-metadata">

**Author:** [@iampadik](https://discourse.processing.org/u/iampadik)\
**Replies:** 0\
**Last updated:** [February 17, 2019, 1:58pm UTC](https://discourse.processing.org/t/serial-communication-between-android-and-microcontroller/8480 "2019-02-17T13:58:52Z")

</div>

I am using Processing 3.5.2 on windows 7. Making an application for android which deals with serial communication. (wired and not Bluetooth). Now, If I use the program in java mode with corresponding default serial libr…

---

## [How many variables in ketaiList?](https://discourse.processing.org/t/how-many-variables-in-ketailist/8366)

<div class="topic-metadata">

**Author:** [@netphysicist](https://discourse.processing.org/u/netphysicist)\
**Replies:** 1\
**Last updated:** [February 15, 2019, 8:02am UTC](https://discourse.processing.org/t/how-many-variables-in-ketailist/8366 "2019-02-15T08:02:59Z")

</div>

Hello, i made an Android app with Processing 3 in which i have a ketaiList. With this ketaiList i load different csv files anytime. My question is how many csv files can i store in the KetaList?

---

## [Running processing for android in other editor](https://discourse.processing.org/t/running-processing-for-android-in-other-editor/8413)

<div class="topic-metadata">

**Author:** [@CrispyCabot](https://discourse.processing.org/u/CrispyCabot)\
**Replies:** 0\
**Last updated:** [February 15, 2019, 1:47am UTC](https://discourse.processing.org/t/running-processing-for-android-in-other-editor/8413 "2019-02-15T01:47:21Z")

</div>

So I am trying to use processing through the atom editor rather than the default IDE it comes with. I am basically just wondering how I do this. With atom, I installed “processing” which basically just runs the command p…

---

## [Installing a new test project failed](https://discourse.processing.org/t/installing-a-new-test-project-failed/8405)

<div class="topic-metadata">

**Author:** [@Banansplitt](https://discourse.processing.org/u/Banansplitt)\
**Replies:** 0\
**Last updated:** [February 14, 2019, 6:53pm UTC](https://discourse.processing.org/t/installing-a-new-test-project-failed/8405 "2019-02-14T18:53:12Z")

</div>

The build is successful, but installing it on my android device is failing. I get the following error: C:\\Users\\xxxxx\\Documents\\Processing\\android\\sdk\\platform-tools\\adb.exe -s V4QBB18918150321 install -r C:\\Users\\xxxxx…

---

## [White screen when running ketai code](https://discourse.processing.org/t/white-screen-when-running-ketai-code/8386)

<div class="topic-metadata">

**Author:** [@lf.parra](https://discourse.processing.org/u/lf.parra)\
**Replies:** 1\
**Last updated:** [February 14, 2019, 11:14am UTC](https://discourse.processing.org/t/white-screen-when-running-ketai-code/8386 "2019-02-14T11:14:45Z")

</div>

import ketai.sensors.\*; KetaiSensor sensor; sensor = new KetaiSensor(this); println(sensor.list()); Hello. I think this is a very simple code, but it still does not work. Phone (Android 5.1.) is recognized and app is op…

[Previous page](https://discourse.processing.org/c/processing-android/12.md?no_subcategories=false&page=24)

[Next page](https://discourse.processing.org/c/processing-android/12.md?no_subcategories=false&page=26)
