# Processing for Android

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

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

**Page:** 14

---

## [Is it possible to upload image files to the ftp server through'processing'?](https://discourse.processing.org/t/is-it-possible-to-upload-image-files-to-the-ftp-server-throughprocessing/28115)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 1\
**Last updated:** [February 27, 2021, 4:01pm UTC](https://discourse.processing.org/t/is-it-possible-to-upload-image-files-to-the-ftp-server-throughprocessing/28115 "2021-02-27T16:01:19Z")

</div>

Is it possible to upload image files to the ftp server through’processing’? Select a picture stored on the smartphone. I want to transfer the saved picture to the ftp server. Is there a method or sample code? He…

---

## [List of flaws with android mode build process and how to resolve them](https://discourse.processing.org/t/list-of-flaws-with-android-mode-build-process-and-how-to-resolve-them/27947)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 10\
**Last updated:** [February 22, 2021, 8:40pm UTC](https://discourse.processing.org/t/list-of-flaws-with-android-mode-build-process-and-how-to-resolve-them/27947 "2021-02-22T20:40:40Z")

</div>

Back at coding after a bit of a hiatus, I’d gotten a little burnt out, plus our university reduced its hours a whole lot because of coronavirus so I wasnt able to get online as much. I have been trying to produce apps f…

---

## [Android\_101: How to open a window](https://discourse.processing.org/t/android-101-how-to-open-a-window/27607)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 8\
**Last updated:** [February 18, 2021, 10:45pm UTC](https://discourse.processing.org/t/android-101-how-to-open-a-window/27607 "2021-02-18T22:45:12Z")

</div>

This basic demo should open a window on an Android device. Buttons will be added in a future demo. Reference: https://processing.org/reference/ color BLUE = color(64,124,188); void setup() { fullScreen(); ori…

---

## [Android\_101: ButtonClass\_single](https://discourse.processing.org/t/android-101-buttonclass-single/27774)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 0\
**Last updated:** [February 12, 2021, 9:02pm UTC](https://discourse.processing.org/t/android-101-buttonclass-single/27774 "2021-02-12T21:02:22Z")

</div>

/\* Creates button from a generic Button class. Syntax: name = new Button( x, y, w, h, "title", btnColor, txtColor); \*/ // Button names Button \_btn1; Button \_btn2; Button \_label; Button \_quit; color BLUE = co…

---

## [Sound lost at restart (e.g. orientation change) - official sound library](https://discourse.processing.org/t/sound-lost-at-restart-e-g-orientation-change-official-sound-library/27453)

<div class="topic-metadata">

**Author:** [@Hans\_342](https://discourse.processing.org/u/Hans_342)\
**Replies:** 10\
**Last updated:** [February 8, 2021, 5:33pm UTC](https://discourse.processing.org/t/sound-lost-at-restart-e-g-orientation-change-official-sound-library/27453 "2021-02-08T17:33:11Z")

</div>

Processing 3.5.4 (in Android Mode) Problem: Using the official Processing Foundation “sound” library, the sound is lost after screen rotation. Could anybody confirm the behaviour: If the “sound” library is installed…

---

## [Android Bluetooth native code](https://discourse.processing.org/t/android-bluetooth-native-code/27586)

<div class="topic-metadata">

**Author:** [@jafal](https://discourse.processing.org/u/jafal)\
**Replies:** 12\
**Last updated:** [February 6, 2021, 7:42pm UTC](https://discourse.processing.org/t/android-bluetooth-native-code/27586 "2021-02-06T19:42:30Z")

</div>

hi this code for member was helping what i need how to send 6 controlp5 sliders values to raduino any one can help??? import android.Manifest; import android.content.pm.PackageManager; import android.os.Build; imp…

---

## [Immersive Mode Issue APDE](https://discourse.processing.org/t/immersive-mode-issue-apde/27590)

<div class="topic-metadata">

**Author:** [@shedMusic](https://discourse.processing.org/u/shedMusic)\
**Replies:** 0\
**Last updated:** [February 4, 2021, 7:57pm UTC](https://discourse.processing.org/t/immersive-mode-issue-apde/27590 "2021-02-04T19:57:36Z")

</div>

Dear all I’m just tinkering with APDE to try the openKeyboard() and closeKeyboard() methods. When I create a sketch such as below, the navigation and notification bars are hidden, so I guess I’m in Immersive Mode, whic…

---

## [Setting up Android Mode in Processing](https://discourse.processing.org/t/setting-up-android-mode-in-processing/27462)

<div class="topic-metadata">

**Author:** [@Maanav](https://discourse.processing.org/u/Maanav)\
**Replies:** 12\
**Last updated:** [February 3, 2021, 6:16pm UTC](https://discourse.processing.org/t/setting-up-android-mode-in-processing/27462 "2021-02-03T18:16:28Z")

</div>

I am trying to set up Android in Processing. But every time I try to load or download the SDK I get a message saying " The Android SDK could not be loaded". I have downloaded the Android 9 and 10 SDK from Android Studio…

---

## [Recognize a double tap](https://discourse.processing.org/t/recognize-a-double-tap/27536)

<div class="topic-metadata">

**Author:** [@Flolo](https://discourse.processing.org/u/Flolo)\
**Replies:** 3\
**Last updated:** [February 2, 2021, 1:14pm UTC](https://discourse.processing.org/t/recognize-a-double-tap/27536 "2021-02-02T13:14:08Z")

</div>

Hey, I wanted to ask how to recognize a double tap on the cell phone. There is MouseEvent.getCount () on the PC … but it doesn’t work on the mobile phone … thanks in advance :slight\_smile:

---

## [Code on events is not executed always how to fix?](https://discourse.processing.org/t/code-on-events-is-not-executed-always-how-to-fix/27504)

<div class="topic-metadata">

**Author:** [@dimpapadop](https://discourse.processing.org/u/dimpapadop)\
**Replies:** 1\
**Last updated:** [January 31, 2021, 8:37pm UTC](https://discourse.processing.org/t/code-on-events-is-not-executed-always-how-to-fix/27504 "2021-01-31T20:37:51Z")

</div>

i have some code inside void oscEvent(OscMessage theOscMessage) event that resizes sketch size with surface eg. pg.beginDraw(); pg.background(0, 0, 0, 0); pg.endDraw(); oldW = int(displ…

---

## [Edit text box Processing for Android](https://discourse.processing.org/t/edit-text-box-processing-for-android/15833)

<div class="topic-metadata">

**Author:** [@noel](https://discourse.processing.org/u/noel)\
**Replies:** 3\
**Last updated:** [January 31, 2021, 7:02pm UTC](https://discourse.processing.org/t/edit-text-box-processing-for-android/15833 "2021-01-31T19:02:20Z")

</div>

Another utility for your Android’s Processing sketch based on Alert Dialog. It can be handy to write a file name to be saved or changing a variable. Please comment if any error. import android.content.DialogInterface; …

---

## [APDE heap size,how to change allocated memory size?](https://discourse.processing.org/t/apde-heap-size-how-to-change-allocated-memory-size/27333)

<div class="topic-metadata">

**Author:** [@Kvi](https://discourse.processing.org/u/Kvi)\
**Replies:** 6\
**Last updated:** [January 30, 2021, 7:39pm UTC](https://discourse.processing.org/t/apde-heap-size-how-to-change-allocated-memory-size/27333 "2021-01-30T19:39:42Z")

</div>

Hi I my tying to make simple game,but have a trouble with java.lang.OutOfMemoryError. My sketch by default (without any P2D,P3D) uses about 40 000 000 bytes,but i have 4gb ram and need minimum 100mb,when i am using P2D…

---

## [Pid dc motor position control](https://discourse.processing.org/t/pid-dc-motor-position-control/27304)

<div class="topic-metadata">

**Author:** [@r0x15](https://discourse.processing.org/u/r0x15)\
**Replies:** 1\
**Last updated:** [January 28, 2021, 2:44pm UTC](https://discourse.processing.org/t/pid-dc-motor-position-control/27304 "2021-01-28T14:44:38Z")

</div>

Good evening I would need to check the position of an engine via android (mobile phone) everything is managed by arduino uno, with a motor driver, an encoder and dc motor connected, the code should have a text box wher…

---

## [Android Mode APK Builder](https://discourse.processing.org/t/android-mode-apk-builder/27383)

<div class="topic-metadata">

**Author:** [@gde126853](https://discourse.processing.org/u/gde126853)\
**Replies:** 3\
**Last updated:** [January 27, 2021, 2:55pm UTC](https://discourse.processing.org/t/android-mode-apk-builder/27383 "2021-01-27T14:55:20Z")

</div>

Nothing works for me since the update from Processing for android to 4.0.2. So can’t create apk anymore. Is there anything you can do to help?

---

## [Correct way to send android camera to PC?](https://discourse.processing.org/t/correct-way-to-send-android-camera-to-pc/26958)

<div class="topic-metadata">

**Author:** [@erkosone](https://discourse.processing.org/u/erkosone)\
**Replies:** 13\
**Last updated:** [January 26, 2021, 9:28pm UTC](https://discourse.processing.org/t/correct-way-to-send-android-camera-to-pc/26958 "2021-01-26T21:28:08Z")

</div>

Hello, does anyone have any example on how to send the image from the camera of an android phone to a PC with processing?

---

## [HTTP Requests Error](https://discourse.processing.org/t/http-requests-error/27390)

<div class="topic-metadata">

**Author:** [@bertin](https://discourse.processing.org/u/bertin)\
**Replies:** 0\
**Last updated:** [January 26, 2021, 7:34pm UTC](https://discourse.processing.org/t/http-requests-error/27390 "2021-01-26T19:34:03Z")

</div>

Hi all I’m trying to make a post request in my android sketch but I’m getting issues. This is my code: import http.requests.\*; void setup () { PostRequest post = new PostRequest("https:// \< my REST API u…

---

## [Connecting to AWS S3 Bucket](https://discourse.processing.org/t/connecting-to-aws-s3-bucket/27307)

<div class="topic-metadata">

**Author:** [@bertin](https://discourse.processing.org/u/bertin)\
**Replies:** 1\
**Last updated:** [January 25, 2021, 5:33pm UTC](https://discourse.processing.org/t/connecting-to-aws-s3-bucket/27307 "2021-01-25T17:33:33Z")

</div>

Hi :slightly\_smiling\_face: I’m building a game with Processing for Android and I need to reach some centralized data that I have in a text file on Amazon S3. I’ve already tested some Java code that gets and updates this…

---

## [Can't load PImage](https://discourse.processing.org/t/cant-load-pimage/17696)

<div class="topic-metadata">

**Author:** [@DogeMastr](https://discourse.processing.org/u/DogeMastr)\
**Replies:** 7\
**Last updated:** [January 25, 2021, 1:42pm UTC](https://discourse.processing.org/t/cant-load-pimage/17696 "2021-01-25T13:42:17Z")

</div>

I’m working on a project where I have to load a ton of images into an array list, The code works on Java fine and good but when I switch over to Android and export it to my phone it crashes. My folder set up is like thi…

---

## [Communication over laptop's Bluetooth](https://discourse.processing.org/t/communication-over-laptops-bluetooth/14056)

<div class="topic-metadata">

**Author:** [@Alex\_Pr](https://discourse.processing.org/u/Alex_Pr)\
**Replies:** 10\
**Last updated:** [January 23, 2021, 10:01pm UTC](https://discourse.processing.org/t/communication-over-laptops-bluetooth/14056 "2021-01-23T22:01:21Z")

</div>

How can I send & receive data through the laptop’s bluetooth? For example, have an android sketch communicate with a java sketch (running on the laptop) over bluetooth? It’s fairly straightforward how to do the android s…

---

## [PWM dimmer LED Android](https://discourse.processing.org/t/pwm-dimmer-led-android/25906)

<div class="topic-metadata">

**Author:** [@r0x15](https://discourse.processing.org/u/r0x15)\
**Replies:** 42\
**Last updated:** [January 23, 2021, 6:42pm UTC](https://discourse.processing.org/t/pwm-dimmer-led-android/25906 "2021-01-23T18:42:19Z")

</div>

Who know one code on android mode to dimmer led to arduino bluetooth ?

---

## [How to use Partial WakeLock](https://discourse.processing.org/t/how-to-use-partial-wakelock/24834)

<div class="topic-metadata">

**Author:** [@Jessie](https://discourse.processing.org/u/Jessie)\
**Replies:** 20\
**Last updated:** [January 22, 2021, 6:27pm UTC](https://discourse.processing.org/t/how-to-use-partial-wakelock/24834 "2021-01-22T18:27:53Z")

</div>

I am trying to make an audio based game in which the phones screen is primarily off. To be specific I need the app to continue to run, playing sounds and communicating with a server, even when I turn it off via the power…

---

## [Running videos on android](https://discourse.processing.org/t/running-videos-on-android/26916)

<div class="topic-metadata">

**Author:** [@paturn](https://discourse.processing.org/u/paturn)\
**Replies:** 46\
**Last updated:** [January 13, 2021, 6:24pm UTC](https://discourse.processing.org/t/running-videos-on-android/26916 "2021-01-13T18:24:50Z")

</div>

I have used Movie in Processing for Windows from processing.video.\* but cannot use it in android. I have tried using FileDescriptor and getAssets etc with the video in data or other folder (located via Environment.getEx…

---

## [Http timeout crash app](https://discourse.processing.org/t/http-timeout-crash-app/27173)

<div class="topic-metadata">

**Author:** [@don\_hurlibutz](https://discourse.processing.org/u/don_hurlibutz)\
**Replies:** 1\
**Last updated:** [January 18, 2021, 11:27pm UTC](https://discourse.processing.org/t/http-timeout-crash-app/27173 "2021-01-18T23:27:43Z")

</div>

Hi Folks, i want to code a simple weather app, fetching the data from the “Deutscher Wetter Dienst” (German Weather Service). All works fine if the Internet- connection is working. But i want an ERROR- Message if someth…

---

## [Android Bluetooth to Arduino and vice versa](https://discourse.processing.org/t/android-bluetooth-to-arduino-and-vice-versa/26578)

<div class="topic-metadata">

**Author:** [@jafal](https://discourse.processing.org/u/jafal)\
**Replies:** 139\
**Last updated:** [January 18, 2021, 9:54pm UTC](https://discourse.processing.org/t/android-bluetooth-to-arduino-and-vice-versa/26578 "2021-01-18T21:54:25Z")

</div>

hi all i made 2 sliders sending values to arduino i want to use same in android mode and control arduino via bluetooth using ‘ketai’ library and i need to know how import controlP5.\*; import processing.serial.\*; Con…

---

## [APDE ketai example](https://discourse.processing.org/t/apde-ketai-example/27133)

<div class="topic-metadata">

**Author:** [@jafal](https://discourse.processing.org/u/jafal)\
**Replies:** 7\
**Last updated:** [January 17, 2021, 12:12pm UTC](https://discourse.processing.org/t/apde-ketai-example/27133 "2021-01-17T12:12:10Z")

</div>

Hi this code receive data from terminal but not sending what I missed ? import android.content.Intent; import android.os.Bundle; import ketai.net.bluetooth.\*; import ketai.ui.\*; import ketai.net.\*; PFont fontMy; boolea…

---

## [Native camera android in processing android](https://discourse.processing.org/t/native-camera-android-in-processing-android/26858)

<div class="topic-metadata">

**Author:** [@dimpapadop](https://discourse.processing.org/u/dimpapadop)\
**Replies:** 31\
**Last updated:** [January 14, 2021, 8:18pm UTC](https://discourse.processing.org/t/native-camera-android-in-processing-android/26858 "2021-01-14T20:18:13Z")

</div>

hallo. I am trying to get the camera working in prcessing android. Using ketai, i get only 7fps no matter the size for example even in 160X120 capture i get 6-7fps How can i use the native android camera api within pr…

---

## [Android video problem](https://discourse.processing.org/t/android-video-problem/26948)

<div class="topic-metadata">

**Author:** [@clay21](https://discourse.processing.org/u/clay21)\
**Replies:** 10\
**Last updated:** [January 11, 2021, 4:12pm UTC](https://discourse.processing.org/t/android-video-problem/26948 "2021-01-11T16:12:48Z")

</div>

Hello, I can’t play video on my phone, but the picture is working, I don’t know what I did wrong I have looked at other forums but quite old ones I would be glad if you could help. HERE IS MY CODE import processing.vide…

---

## [Cant video or image](https://discourse.processing.org/t/cant-video-or-image/26884)

<div class="topic-metadata">

**Author:** [@clay21](https://discourse.processing.org/u/clay21)\
**Replies:** 6\
**Last updated:** [January 9, 2021, 3:40pm UTC](https://discourse.processing.org/t/cant-video-or-image/26884 "2021-01-09T15:40:31Z")

</div>

Hello ım tryn to learn anroid mode but i cant add video or image to my sketch something wrong but i have no idea whats happening HERE IS MY CODE PImage img; void setup() { fullScreen(); noStroke(); fill(0); img=l…

---

## [PopupMenu items textSize](https://discourse.processing.org/t/popupmenu-items-textsize/26111)

<div class="topic-metadata">

**Author:** [@paturn](https://discourse.processing.org/u/paturn)\
**Replies:** 41\
**Last updated:** [January 7, 2021, 12:23pm UTC](https://discourse.processing.org/t/popupmenu-items-textsize/26111 "2021-01-07T12:23:28Z")

</div>

I am using the PopupMenu code authored by EmmanuelPil and would like to display 16-18 items in the PopupMenu list, but can only display 13 lines maximum without scrolling. I have tried changing menuanchor.textSize(12) bu…

---

## [LoadImage Android Studio](https://discourse.processing.org/t/loadimage-android-studio/26802)

<div class="topic-metadata">

**Author:** [@andritow](https://discourse.processing.org/u/andritow)\
**Replies:** 0\
**Last updated:** [January 5, 2021, 7:35pm UTC](https://discourse.processing.org/t/loadimage-android-studio/26802 "2021-01-05T19:35:59Z")

</div>

I already checked this forum with loadimage and I haven’t been able to add images to my project yet. I have the assets folder add to the project where I have put my images but when I call them it keeps showing an error. …

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

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