# Processing for Android

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

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

**Page:** 8

---

## [Application in the background](https://discourse.processing.org/t/application-in-the-background/37402)

<div class="topic-metadata">

**Author:** [@NomMi](https://discourse.processing.org/u/NomMi)\
**Replies:** 2\
**Last updated:** [June 9, 2022, 5:17pm UTC](https://discourse.processing.org/t/application-in-the-background/37402 "2022-06-09T17:17:27Z")

</div>

I have a code for communicating between a phone and an Arduino to make an alarm for a scooter. My problem is that I don’t know how to make the program run in the background (when the phone is in sleep mode or the app is …

---

## [How to manually set the camera white balance using Ketai?](https://discourse.processing.org/t/how-to-manually-set-the-camera-white-balance-using-ketai/37366)

<div class="topic-metadata">

**Author:** [@outslider](https://discourse.processing.org/u/outslider)\
**Replies:** 7\
**Last updated:** [June 9, 2022, 2:51am UTC](https://discourse.processing.org/t/how-to-manually-set-the-camera-white-balance-using-ketai/37366 "2022-06-09T02:51:40Z")

</div>

Is there any way to manually set the white balance using Ketai? I know it has the manualSettings() method but it does virtually nothing for setting things manually, it just disables automatic setting changes by the syste…

---

## [AR: GetPose of Camera (Pose class)](https://discourse.processing.org/t/ar-getpose-of-camera-pose-class/37337)

<div class="topic-metadata">

**Author:** [@jensensound](https://discourse.processing.org/u/jensensound)\
**Replies:** 6\
**Last updated:** [June 8, 2022, 3:16pm UTC](https://discourse.processing.org/t/ar-getpose-of-camera-pose-class/37337 "2022-06-08T15:16:51Z")

</div>

Hi there, i am working with Processing for Android for a AR App and I am trying to work with the camera position (e.g. to rotate things according to camera rotation etc.) I used the commented out lines in the “Cubes” E…

---

## [Does Android mode work in Processing 4](https://discourse.processing.org/t/does-android-mode-work-in-processing-4/33413)

<div class="topic-metadata">

**Author:** [@katesfb](https://discourse.processing.org/u/katesfb)\
**Replies:** 1\
**Last updated:** [June 3, 2022, 10:02pm UTC](https://discourse.processing.org/t/does-android-mode-work-in-processing-4/33413 "2022-06-03T22:02:11Z")

</div>

Hi, Does android mode work in processing 4? I have setup processing 4 and added Python mode, R mode and REPL mode successfully but Android mode is grayed out and there is a message indicating that 4.2.1 is not compatib…

---

## [Error creating emulator](https://discourse.processing.org/t/error-creating-emulator/37084)

<div class="topic-metadata">

**Author:** [@urlxd](https://discourse.processing.org/u/urlxd)\
**Replies:** 6\
**Last updated:** [May 25, 2022, 4:50pm UTC](https://discourse.processing.org/t/error-creating-emulator/37084 "2022-05-25T16:50:16Z")

</div>

hello i get this error when i run the sketch: Blockquote Build folder: C:\\Users\\B7E3~1\\AppData\\Local\\Temp\\android7799464270916013891sketch org.gradle.tooling.GradleConnectionException: Could not execute build using …

---

## [Alter screen brightness programmatically](https://discourse.processing.org/t/alter-screen-brightness-programmatically/36975)

<div class="topic-metadata">

**Author:** [@katesfb](https://discourse.processing.org/u/katesfb)\
**Replies:** 3\
**Last updated:** [May 23, 2022, 4:54am UTC](https://discourse.processing.org/t/alter-screen-brightness-programmatically/36975 "2022-05-23T04:54:48Z")

</div>

HI, I am trying to find a simple method to alter the screen brightness in an application that will only be viewed for a short period then after that is not required. I have found some example code created using android…

---

## [\[Android\] Is it possible to update libraries like Ketai?](https://discourse.processing.org/t/android-is-it-possible-to-update-libraries-like-ketai/36856)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 4\
**Last updated:** [May 18, 2022, 11:12pm UTC](https://discourse.processing.org/t/android-is-it-possible-to-update-libraries-like-ketai/36856 "2022-05-18T23:12:50Z")

</div>

\[Android\] Is it possible to update libraries like Ketai? hello. I have created several projects and APPs through ‘Android Processing’. Good environment and software. However, there are many things that do not work thr…

---

## [Exit Behaviour on Android](https://discourse.processing.org/t/exit-behaviour-on-android/36356)

<div class="topic-metadata">

**Author:** [@TimeLex](https://discourse.processing.org/u/TimeLex)\
**Replies:** 4\
**Last updated:** [May 14, 2022, 2:28pm UTC](https://discourse.processing.org/t/exit-behaviour-on-android/36356 "2022-05-14T14:28:57Z")

</div>

Hello, I’m just making an app for Android and have a few problems with the behavior as the app closes. My first problem is that the app closes directly when you press the back key. I want you to come to the menu first an…

---

## [\[Android\] \[2 issues\] 1) Is it possible to release '.aab'? 2) '.apk' release error](https://discourse.processing.org/t/android-2-issues-1-is-it-possible-to-release-aab-2-apk-release-error/33295)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 20\
**Last updated:** [May 13, 2022, 4:48pm UTC](https://discourse.processing.org/t/android-2-issues-1-is-it-possible-to-release-aab-2-apk-release-error/33295 "2022-05-13T16:48:17Z")

</div>

2 issues Is it possible to release ‘.aab’? ‘.apk’ release error In order to release Android, ‘.aab’ file is required. Is it possible with a ‘processing’ program? ‘.apk’ is created through debugging, but an er…

---

## [\[Android-Processing\] What 'library' would you like to have?](https://discourse.processing.org/t/android-processing-what-library-would-you-like-to-have/36857)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [May 12, 2022, 11:42pm UTC](https://discourse.processing.org/t/android-processing-what-library-would-you-like-to-have/36857 "2022-05-12T23:42:11Z")

</div>

\[Android-Processing\] What ‘library’ would you like to have? This is a list of libraries that I personally would like to have. (Android library) NFC Read/Write BLE GATT/Communication BEACON Scrollbar Menubar Was this…

---

## [\[ANDROID\] BLE VERSION Android 12](https://discourse.processing.org/t/android-ble-version-android-12/35404)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 5\
**Last updated:** [May 12, 2022, 10:32pm UTC](https://discourse.processing.org/t/android-ble-version-android-12/35404 "2022-05-12T22:32:22Z")

</div>

In Android version 12, BLE SCAN operation is a problem. In case you want to solve this, I found the site address. android:usesPermissionFlags="neverForLocation" How do I add the above in ‘Processing’?

---

## [Solution for handler deprecated](https://discourse.processing.org/t/solution-for-handler-deprecated/35587)

<div class="topic-metadata">

**Author:** [@Myrdalm](https://discourse.processing.org/u/Myrdalm)\
**Replies:** 1\
**Last updated:** [May 12, 2022, 10:16pm UTC](https://discourse.processing.org/t/solution-for-handler-deprecated/35587 "2022-05-12T22:16:53Z")

</div>

My code when using processing 3 works with the previous handler code: But for processing 4, it indicated handler deprecated. I am trying to fix the code but I could not fix it until not. Any solution to fix the code coul…

---

## [Publishing App on Play Store with no Icon](https://discourse.processing.org/t/publishing-app-on-play-store-with-no-icon/35744)

<div class="topic-metadata">

**Author:** [@bertin](https://discourse.processing.org/u/bertin)\
**Replies:** 6\
**Last updated:** [May 12, 2022, 9:58pm UTC](https://discourse.processing.org/t/publishing-app-on-play-store-with-no-icon/35744 "2022-05-12T21:58:41Z")

</div>

Hi all I just published an app on the Play Store using gradle for building the app bundle (I first exported the android project from Processing then I built the app using gradle bundleRelease like indicated in one of th…

---

## [Basic Code Build in Processing 3 but does not build in Processing 4 (both Android Mode)](https://discourse.processing.org/t/basic-code-build-in-processing-3-but-does-not-build-in-processing-4-both-android-mode/35591)

<div class="topic-metadata">

**Author:** [@Myrdalm](https://discourse.processing.org/u/Myrdalm)\
**Replies:** 8\
**Last updated:** [May 12, 2022, 9:40pm UTC](https://discourse.processing.org/t/basic-code-build-in-processing-3-but-does-not-build-in-processing-4-both-android-mode/35591 "2022-05-12T21:40:25Z")

</div>

I’ve been trying to build codes on my phone and it works when I use Processing 3 Android Mode but fails when using Processing 4 Android Mode. This also applies to basic codes and examples given by the IDE and website. I …

---

## [Android build failure](https://discourse.processing.org/t/android-build-failure/36575)

<div class="topic-metadata">

**Author:** [@jSdCool](https://discourse.processing.org/u/jSdCool)\
**Replies:** 4\
**Last updated:** [May 12, 2022, 8:55pm UTC](https://discourse.processing.org/t/android-build-failure/36575 "2022-05-12T20:55:39Z")

</div>

after I downloaded the new version of android mode for processing 4 wrote a simple program and when I tries to test it I got Exception in thread "Thread-27" java.lang.NoSuchMethodError: 'java.lang.String processing.mod…

---

## [How to prevent lock screen (disable standby button)](https://discourse.processing.org/t/how-to-prevent-lock-screen-disable-standby-button/33570)

<div class="topic-metadata">

**Author:** [@bigboss97](https://discourse.processing.org/u/bigboss97)\
**Replies:** 1\
**Last updated:** [May 5, 2022, 6:22am UTC](https://discourse.processing.org/t/how-to-prevent-lock-screen-disable-standby-button/33570 "2022-05-05T06:22:44Z")

</div>

I’m using Processing 3.5.4 in Android mode. I want the screen always on while my app is running, i.e. disable the phone power button to avoid accidentally locking the screen. How can I do that?

---

## [Processing.sound SoundFile in Android](https://discourse.processing.org/t/processing-sound-soundfile-in-android/36625)

<div class="topic-metadata">

**Author:** [@JamesLEE](https://discourse.processing.org/u/JamesLEE)\
**Replies:** 1\
**Last updated:** [May 1, 2022, 11:30pm UTC](https://discourse.processing.org/t/processing-sound-soundfile-in-android/36625 "2022-05-01T23:30:43Z")

</div>

Hello Guys I am very new both processing and android. I would use an example “beat detection” using processing.sound in android. I want to vibrate my phone when beat is detected as shown below code. Can anyone help m…

---

## [Is there a text to speech for Android?](https://discourse.processing.org/t/is-there-a-text-to-speech-for-android/26777)

<div class="topic-metadata">

**Author:** [@Rogo](https://discourse.processing.org/u/Rogo)\
**Replies:** 22\
**Last updated:** [May 1, 2022, 10:24pm UTC](https://discourse.processing.org/t/is-there-a-text-to-speech-for-android/26777 "2022-05-01T22:24:54Z")

</div>

is there a text to speech for Android?

---

## [How to split screen into 2 parts](https://discourse.processing.org/t/how-to-split-screen-into-2-parts/36413)

<div class="topic-metadata">

**Author:** [@urlxd](https://discourse.processing.org/u/urlxd)\
**Replies:** 2\
**Last updated:** [April 19, 2022, 1:04am UTC](https://discourse.processing.org/t/how-to-split-screen-into-2-parts/36413 "2022-04-19T01:04:57Z")

</div>

hello, I don’t know how to split the screen into 2 parts so that mouseX and mouseY are 2. well, so that you can make two joysticks or 2 buttons at the same time. if it is possible please tell me how. :slight\_smile:

---

## [WearOS returning null on getContext()](https://discourse.processing.org/t/wearos-returning-null-on-getcontext/34839)

<div class="topic-metadata">

**Author:** [@Lascasas](https://discourse.processing.org/u/Lascasas)\
**Replies:** 1\
**Last updated:** [April 17, 2022, 3:08pm UTC](https://discourse.processing.org/t/wearos-returning-null-on-getcontext/34839 "2022-04-17T15:08:51Z")

</div>

Hello, I’m trying to access the vibrator sensor of my TicWatch Pro 3 (Wear OS). I followed the tutorial, added the permissions “VIBRATE” and “WAKE\_LOCK” under “Sketch Permissions”. Here is my code: import android.os.V…

---

## [PShape rendering issue in Android Mode](https://discourse.processing.org/t/pshape-rendering-issue-in-android-mode/36323)

<div class="topic-metadata">

**Author:** [@DarkMarco](https://discourse.processing.org/u/DarkMarco)\
**Replies:** 0\
**Last updated:** [April 14, 2022, 1:05am UTC](https://discourse.processing.org/t/pshape-rendering-issue-in-android-mode/36323 "2022-04-14T01:05:04Z")

</div>

I’ve been devaloping a mobile game for a while using Processing. While optimising, I discovered a weird problem with PShape rendeing on Android. PShapes created and saved as a variable draw behind everything, whereas one…

---

## [How do I make the stuff in my game matching the display](https://discourse.processing.org/t/how-do-i-make-the-stuff-in-my-game-matching-the-display/36267)

<div class="topic-metadata">

**Author:** [@Coder1](https://discourse.processing.org/u/Coder1)\
**Replies:** 0\
**Last updated:** [April 10, 2022, 10:07pm UTC](https://discourse.processing.org/t/how-do-i-make-the-stuff-in-my-game-matching-the-display/36267 "2022-04-10T22:07:37Z")

</div>

Hello. I made a game and tested it on 2 different devices. I noticed that the looks in my game are different. The text doesn’t match what I wanted etc. How do I make a game where the stuff inside it matches the display …

---

## [Calling other application within sketch (Android code share)](https://discourse.processing.org/t/calling-other-application-within-sketch-android-code-share/16348)

<div class="topic-metadata">

**Author:** [@noel](https://discourse.processing.org/u/noel)\
**Replies:** 3\
**Last updated:** [April 8, 2022, 4:13am UTC](https://discourse.processing.org/t/calling-other-application-within-sketch-android-code-share/16348 "2022-04-08T04:13:35Z")

</div>

My initial goal was to call call different sketches one after another, but there is still a white screen visible for a fraction of a second, so I have to use an boolean if in draw() to do it smoothless. Nevertheless it …

---

## [getDefaultAdapter(); Deprecation](https://discourse.processing.org/t/getdefaultadapter-deprecation/35781)

<div class="topic-metadata">

**Author:** [@Myrdalm](https://discourse.processing.org/u/Myrdalm)\
**Replies:** 0\
**Last updated:** [March 16, 2022, 1:40pm UTC](https://discourse.processing.org/t/getdefaultadapter-deprecation/35781 "2022-03-16T13:40:47Z")

</div>

I use BluetoothAdapter bluetooth = BluetoothAdapter.getDefaultAdapter(); in my code to be able to connect with Bluetooth, but unfortunately, this code is already a deprecated method. It still works but I don’t know if …

---

## [Android AR / marker as anchor / drawing obj?](https://discourse.processing.org/t/android-ar-marker-as-anchor-drawing-obj/35685)

<div class="topic-metadata">

**Author:** [@tobolon](https://discourse.processing.org/u/tobolon)\
**Replies:** 0\
**Last updated:** [March 11, 2022, 4:55pm UTC](https://discourse.processing.org/t/android-ar-marker-as-anchor-drawing-obj/35685 "2022-03-11T16:55:44Z")

</div>

hello, instead of hitting the phones screen with my finger to create an anchor and draw an obj (like in Andres Colubri´s nice AR tutorial) i would like to place it automatically when/where an optical marker is detected (…

---

## [How to save data in a program](https://discourse.processing.org/t/how-to-save-data-in-a-program/35525)

<div class="topic-metadata">

**Author:** [@Coder1](https://discourse.processing.org/u/Coder1)\
**Replies:** 18\
**Last updated:** [March 10, 2022, 12:11am UTC](https://discourse.processing.org/t/how-to-save-data-in-a-program/35525 "2022-03-10T00:11:44Z")

</div>

Hello I have been making a game and I wanted to know how you can save data in a game. For example you earned 10 points and when you close the app and reopen it, your progress will not be reset but the 10 points will sta…

---

## [Function onTap, KetaiGesture in Processing for Android](https://discourse.processing.org/t/function-ontap-ketaigesture-in-processing-for-android/35340)

<div class="topic-metadata">

**Author:** [@TiagoNess](https://discourse.processing.org/u/TiagoNess)\
**Replies:** 0\
**Last updated:** [February 20, 2022, 4:23pm UTC](https://discourse.processing.org/t/function-ontap-ketaigesture-in-processing-for-android/35340 "2022-02-20T16:23:22Z")

</div>

Hello everyone, I have a concern, I am trying to do the following: create objects with a tap on the device, but when counting the objects, the onTap function seems to create twice as many objects. The principal: import…

---

## [Int wont be saved in my txt file](https://discourse.processing.org/t/int-wont-be-saved-in-my-txt-file/35598)

<div class="topic-metadata">

**Author:** [@Coder1](https://discourse.processing.org/u/Coder1)\
**Replies:** 20\
**Last updated:** [March 6, 2022, 10:02pm UTC](https://discourse.processing.org/t/int-wont-be-saved-in-my-txt-file/35598 "2022-03-06T22:02:58Z")

</div>

Hello. @TimeLex helped my with my data issue and it worked. Now I added two values. Int and String. The String is being saved but the Int doesnt want to be saved anymore. It always resets to 0 when I restart the program …

---

## [How to do multiple touches on screen?](https://discourse.processing.org/t/how-to-do-multiple-touches-on-screen/35534)

<div class="topic-metadata">

**Author:** [@Coder1](https://discourse.processing.org/u/Coder1)\
**Replies:** 3\
**Last updated:** [March 4, 2022, 5:19pm UTC](https://discourse.processing.org/t/how-to-do-multiple-touches-on-screen/35534 "2022-03-04T17:19:42Z")

</div>

Hello I have been making a game on Android and I wanted to know how to make multiple touches on the screen. For example I created two buttons. The first is for running and the second is for jumping. I wanted to know how…

---

## [Cannot read csv files in Android](https://discourse.processing.org/t/cannot-read-csv-files-in-android/35523)

<div class="topic-metadata">

**Author:** [@Coder1](https://discourse.processing.org/u/Coder1)\
**Replies:** 1\
**Last updated:** [March 2, 2022, 10:49pm UTC](https://discourse.processing.org/t/cannot-read-csv-files-in-android/35523 "2022-03-02T22:49:03Z")

</div>

Hello. I would like to know if I can read a csv file on Android. When I use the command: Table table = loadTable(Mappe.csv); In my programm code. I always get the error: Error reading table on line 1 By the way, the…

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

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