# Processing for Android

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

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

**Page:** 25

---

## [Push() and pop() function isn't working](https://discourse.processing.org/t/push-and-pop-function-isnt-working/12593)

<div class="topic-metadata">

**Author:** [@CubingProgrammer](https://discourse.processing.org/u/CubingProgrammer)\
**Replies:** 4\
**Last updated:** [July 9, 2019, 1:19am UTC](https://discourse.processing.org/t/push-and-pop-function-isnt-working/12593 "2019-07-09T01:19:34Z")

</div>

I want to use push() and pop() function when i run the project it fails. What can i do?

---

## [How to load fonts on an android device?](https://discourse.processing.org/t/how-to-load-fonts-on-an-android-device/12488)

<div class="topic-metadata">

**Author:** [@WeinSim](https://discourse.processing.org/u/WeinSim)\
**Replies:** 15\
**Last updated:** [July 5, 2019, 5:32pm UTC](https://discourse.processing.org/t/how-to-load-fonts-on-an-android-device/12488 "2019-07-05T17:32:24Z")

</div>

Hi, so I want to make a sketch on my phone where i load a font but always fails to load the font. I also put it into the sketch’s data folder (both as a \*.ttf as well as \*.vwl) but none of it worked. Any ideas on what I’…

---

## [Using Emulators](https://discourse.processing.org/t/using-emulators/12262)

<div class="topic-metadata">

**Author:** [@shedMusic](https://discourse.processing.org/u/shedMusic)\
**Replies:** 2\
**Last updated:** [July 3, 2019, 6:31am UTC](https://discourse.processing.org/t/using-emulators/12262 "2019-07-03T06:31:19Z")

</div>

Just checking what I think I have understood from elsewhere … although I have various emulators working in AS, these cannot be used from within Processing … is that correct? Thanks Mark

---

## [loadImage of android mode in android studio](https://discourse.processing.org/t/loadimage-of-android-mode-in-android-studio/12446)

<div class="topic-metadata">

**Author:** [@T-matsumoto](https://discourse.processing.org/u/T-matsumoto)\
**Replies:** 2\
**Last updated:** [July 3, 2019, 6:11am UTC](https://discourse.processing.org/t/loadimage-of-android-mode-in-android-studio/12446 "2019-07-03T06:11:02Z")

</div>

Hello, I am developing processing android app in android studio, but I can’t load image from loadImage(). I wrote below codes and enabled permission “WRITE\_EXTERNAL\_STORAGE”, “READ\_EXTERNAL\_STORAGE”. I understood that…

---

## [\[SOLVED\] Virtual Reality Centring an Image](https://discourse.processing.org/t/solved-virtual-reality-centring-an-image/4239)

<div class="topic-metadata">

**Author:** [@RockyHawk](https://discourse.processing.org/u/RockyHawk)\
**Replies:** 3\
**Last updated:** [July 2, 2019, 5:40pm UTC](https://discourse.processing.org/t/solved-virtual-reality-centring-an-image/4239 "2019-07-02T17:40:39Z")

</div>

So I have a basic processing VR script for the daydream headset, I have it below. import processing.vr.\*; PImage title; void setup() { fullScreen(STEREO); title = loadImage("title.png"); title.resize(width/2,heigh…

---

## [\[SOLVED\] Processing messed up after using AS](https://discourse.processing.org/t/solved-processing-messed-up-after-using-as/12264)

<div class="topic-metadata">

**Author:** [@shedMusic](https://discourse.processing.org/u/shedMusic)\
**Replies:** 4\
**Last updated:** [June 25, 2019, 10:00am UTC](https://discourse.processing.org/t/solved-processing-messed-up-after-using-as/12264 "2019-06-25T10:00:15Z")

</div>

OK … so I decided to try AS to see how it might be useful in addition to Processing and now I get this error when I attempt to build using Processing … FAILURE: Build failed with an exception. \* What went wrong: A p…

---

## [How to get the orientation](https://discourse.processing.org/t/how-to-get-the-orientation/12233)

<div class="topic-metadata">

**Author:** [@Waboqueox](https://discourse.processing.org/u/Waboqueox)\
**Replies:** 4\
**Last updated:** [June 24, 2019, 8:58am UTC](https://discourse.processing.org/t/how-to-get-the-orientation/12233 "2019-06-24T08:58:58Z")

</div>

Hi, I’m trying to get the orientation of the device to place a text inside a rectangle which variate it size depending on the device orientation (PORTRAIT or LANDSCAPE). Using processing 3.5.3 in android mode. Someone …

---

## [Unique icon while exporting signed pakage\[Android\]](https://discourse.processing.org/t/unique-icon-while-exporting-signed-pakage-android/5915)

<div class="topic-metadata">

**Author:** [@manhnt](https://discourse.processing.org/u/manhnt)\
**Replies:** 18\
**Last updated:** [June 20, 2019, 3:44pm UTC](https://discourse.processing.org/t/unique-icon-while-exporting-signed-pakage-android/5915 "2019-06-20T15:44:35Z")

</div>

I got this error while exporting my package:\[Image below\] I know this error but don’t know how to solve it. Please tell me step-by-step how to do this!:no\_mouth::thinking::thinking:

---

## [Save int for Android program](https://discourse.processing.org/t/save-int-for-android-program/12092)

<div class="topic-metadata">

**Author:** [@Nick1](https://discourse.processing.org/u/Nick1)\
**Replies:** 9\
**Last updated:** [June 17, 2019, 8:38am UTC](https://discourse.processing.org/t/save-int-for-android-program/12092 "2019-06-17T08:38:16Z")

</div>

hey, i want that counter is saved when somebody restart the app or something. I tried it with a string but idk how i can do it. I think you dont need the pictures. thanks for help here the code: PImage yo\_oli, kind,…

---

## [Android mode loadShape() is broken?](https://discourse.processing.org/t/android-mode-loadshape-is-broken/11938)

<div class="topic-metadata">

**Author:** [@erkosone](https://discourse.processing.org/u/erkosone)\
**Replies:** 5\
**Last updated:** [June 13, 2019, 10:04am UTC](https://discourse.processing.org/t/android-mode-loadshape-is-broken/11938 "2019-06-13T10:04:28Z")

</div>

Hi, i run this simple code and works fine on windows, but only loads the first .obj model… untitled.obj eject error when attempt to load a .mtl material file, i dont´k known the problem. PShape s1,s2; float ry; public…

---

## [Arduino / Processing / Android Bluetooth (Ketai) communication problem](https://discourse.processing.org/t/arduino-processing-android-bluetooth-ketai-communication-problem/11863)

<div class="topic-metadata">

**Author:** [@DrRocksalt](https://discourse.processing.org/u/DrRocksalt)\
**Replies:** 1\
**Last updated:** [June 6, 2019, 5:56pm UTC](https://discourse.processing.org/t/arduino-processing-android-bluetooth-ketai-communication-problem/11863 "2019-06-06T17:56:12Z")

</div>

Long time lurker, first time poster. I have a silly race car project. I’ve designed circuitry and Arduino code to probe various things on the car, and then perform some basic actions, like shift the transmission, turn …

---

## [Android Studio: attempt to invoke virtual method on a null object reference](https://discourse.processing.org/t/android-studio-attempt-to-invoke-virtual-method-on-a-null-object-reference/11705)

<div class="topic-metadata">

**Author:** [@Gabi](https://discourse.processing.org/u/Gabi)\
**Replies:** 9\
**Last updated:** [June 4, 2019, 10:01am UTC](https://discourse.processing.org/t/android-studio-attempt-to-invoke-virtual-method-on-a-null-object-reference/11705 "2019-06-04T10:01:51Z")

</div>

Hi, i’m new to this forum but i’ve already have some experience with Processing. Recently i started learning Android programming using Android Studio so i decided to setup the Processing core library. Inspired by a Shiff…

---

## [After port to AS, adding a button](https://discourse.processing.org/t/after-port-to-as-adding-a-button/11634)

<div class="topic-metadata">

**Author:** [@lve0200](https://discourse.processing.org/u/lve0200)\
**Replies:** 6\
**Last updated:** [May 28, 2019, 7:02pm UTC](https://discourse.processing.org/t/after-port-to-as-adding-a-button/11634 "2019-05-28T19:02:53Z")

</div>

Hi, I have ported my Proc4A app to AS. The App works “full screen”, I guess what’s called “match parent”. The App only draws Graphics elements in there. The related XML file, which was created by AS during the importat…

---

## [SQlite and Read Only file wont open in android](https://discourse.processing.org/t/sqlite-and-read-only-file-wont-open-in-android/11527)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 2\
**Last updated:** [May 24, 2019, 2:46am UTC](https://discourse.processing.org/t/sqlite-and-read-only-file-wont-open-in-android/11527 "2019-05-24T02:46:48Z")

</div>

I wrote a sketch that opens and reads a .db file of about 200,000 stars. In Processing 3 on desktop it reads the db file, uses a specific query to get about 6000 stars that are displayed as texture.point(X,Y). I took t…

---

## [Errors on sending serial data to Android](https://discourse.processing.org/t/errors-on-sending-serial-data-to-android/11430)

<div class="topic-metadata">

**Author:** [@mash](https://discourse.processing.org/u/mash)\
**Replies:** 1\
**Last updated:** [May 23, 2019, 3:27pm UTC](https://discourse.processing.org/t/errors-on-sending-serial-data-to-android/11430 "2019-05-23T15:27:04Z")

</div>

I am using a STM 32 to send serial data over to an android. I have edited the manifest file as well as the driver file before running it. It builds, but then shows the following error: (P.S: running it on Android 9, G…

---

## [2 Questions about meter lib](https://discourse.processing.org/t/2-questions-about-meter-lib/11329)

<div class="topic-metadata">

**Author:** [@lve0200](https://discourse.processing.org/u/lve0200)\
**Replies:** 5\
**Last updated:** [May 20, 2019, 1:36pm UTC](https://discourse.processing.org/t/2-questions-about-meter-lib/11329 "2019-05-20T13:36:04Z")

</div>

my 1st question, meter draws meters on a white background into a picture, hence background() and fill() has no effect. Only tint() works, but shades the entire picture, not only the background. However I would like to h…

---

## [Alpha transparency causing crazy rainbow glitches - Galaxy S8](https://discourse.processing.org/t/alpha-transparency-causing-crazy-rainbow-glitches-galaxy-s8/11383)

<div class="topic-metadata">

**Author:** [@dsvid](https://discourse.processing.org/u/dsvid)\
**Replies:** 3\
**Last updated:** [May 20, 2019, 9:02am UTC](https://discourse.processing.org/t/alpha-transparency-causing-crazy-rainbow-glitches-galaxy-s8/11383 "2019-05-20T09:02:18Z")

</div>

Hi everyone, I’m trying to apply an alpha mask to an image in Processing for Android simply using the .mask method, e.g. img.mask(alpha) and I’m getting seriously wild glitches. I also tried compiling the basic Alphamas…

---

## [Android VR Cardboard](https://discourse.processing.org/t/android-vr-cardboard/11098)

<div class="topic-metadata">

**Author:** [@JohnM](https://discourse.processing.org/u/JohnM)\
**Replies:** 1\
**Last updated:** [May 20, 2019, 6:55am UTC](https://discourse.processing.org/t/android-vr-cardboard/11098 "2019-05-20T06:55:59Z")

</div>

Hello, I need some help. I want to display the picture (so she was always before my eyes, even when rotated). When using the background(img) function, I just have error: handleDraw() called before finishing My code: im…

---

## [Just another HickUp, porting to AS](https://discourse.processing.org/t/just-another-hickup-porting-to-as/11361)

<div class="topic-metadata">

**Author:** [@lve0200](https://discourse.processing.org/u/lve0200)\
**Replies:** 2\
**Last updated:** [May 20, 2019, 5:51am UTC](https://discourse.processing.org/t/just-another-hickup-porting-to-as/11361 "2019-05-20T05:51:47Z")

</div>

Hi, my App is organised in 10 tabs, which are in Processing logically seen as 1 big source file. I put the tab w/ setup() and draw() per cut&paste into the AS main activity, but what about all the other tabs? How can I …

---

## [Calculate intersection between 3d object and line of sight?](https://discourse.processing.org/t/calculate-intersection-between-3d-object-and-line-of-sight/11229)

<div class="topic-metadata">

**Author:** [@sundftig](https://discourse.processing.org/u/sundftig)\
**Replies:** 1\
**Last updated:** [May 17, 2019, 8:30pm UTC](https://discourse.processing.org/t/calculate-intersection-between-3d-object-and-line-of-sight/11229 "2019-05-17T20:30:44Z")

</div>

Hi all, here is my problem. I’m using for the first time processing in Android mode. I setup an environment with sphere floating in space. What I want to do is trigger an audio file when I look at a specific sphere. …

---

## [Softkey & EditText](https://discourse.processing.org/t/softkey-edittext/11129)

<div class="topic-metadata">

**Author:** [@lve0200](https://discourse.processing.org/u/lve0200)\
**Replies:** 29\
**Last updated:** [May 16, 2019, 3:48pm UTC](https://discourse.processing.org/t/softkey-edittext/11129 "2019-05-16T15:48:15Z")

</div>

Hi, sorry for the “idiots guide to the universe” type of question, just grant me the newbie status… I want to create a softkey and upon mouse click on it a 5 digit editable number field/widget?) should allow me to ente…

---

## [Problems receiveing HTTP on Android with loadstrings](https://discourse.processing.org/t/problems-receiveing-http-on-android-with-loadstrings/9387)

<div class="topic-metadata">

**Author:** [@dafsoield12](https://discourse.processing.org/u/dafsoield12)\
**Replies:** 9\
**Last updated:** [May 15, 2019, 7:12am UTC](https://discourse.processing.org/t/problems-receiveing-http-on-android-with-loadstrings/9387 "2019-05-15T07:12:19Z")

</div>

Hi, I have set up on my Adruino ESP32 a AccessPoint. It works and will receive informations over the browser on my android. For example: 192.168.4.1/red=on Will turn on the red LED on my ardunio. Now I want to send Co…

---

## [Android Mode saving and loading txt file](https://discourse.processing.org/t/android-mode-saving-and-loading-txt-file/5504)

<div class="topic-metadata">

**Author:** [@imaginativeCODE](https://discourse.processing.org/u/imaginativeCODE)\
**Replies:** 16\
**Last updated:** [May 14, 2019, 10:33am UTC](https://discourse.processing.org/t/android-mode-saving-and-loading-txt-file/5504 "2019-05-14T10:33:34Z")

</div>

I’m having trouble saving and loading .txt files on android mode sketch. I have looked at past discussions about how to resolve the problem but it makes no sense to me. What’s the difference in saving and loading .txt f…

---

## [Bleeding edge of technology](https://discourse.processing.org/t/bleeding-edge-of-technology/11201)

<div class="topic-metadata">

**Author:** [@lve0200](https://discourse.processing.org/u/lve0200)\
**Replies:** 2\
**Last updated:** [May 14, 2019, 8:27am UTC](https://discourse.processing.org/t/bleeding-edge-of-technology/11201 "2019-05-14T08:27:47Z")

</div>

Hi, just to dump my frustration. I don’t know for how long P4Android does exist, but 4me as a beginner its just terrible. Beware, I am an el Engineer, programming since 1976 in Assembler, but no Debugger, can’t look a…

---

## [Read light sensor?](https://discourse.processing.org/t/read-light-sensor/11131)

<div class="topic-metadata">

**Author:** [@socraticbot](https://discourse.processing.org/u/socraticbot)\
**Replies:** 4\
**Last updated:** [May 12, 2019, 5:05pm UTC](https://discourse.processing.org/t/read-light-sensor/11131 "2019-05-12T17:05:45Z")

</div>

Hi all, I am working on a scanner that uses just the ambient light sensor and the screen as a camera scanner. The way this would work is that this psuedocode: turn all screen black. turn pixel 1 white full brightness. …

---

## [LocalDateTime Error](https://discourse.processing.org/t/localdatetime-error/11086)

<div class="topic-metadata">

**Author:** [@Americanjoghurt](https://discourse.processing.org/u/Americanjoghurt)\
**Replies:** 4\
**Last updated:** [May 11, 2019, 8:57am UTC](https://discourse.processing.org/t/localdatetime-error/11086 "2019-05-11T08:57:44Z")

</div>

Hi, I have the problem, that each Time I want to send my code with java.time.LocalDateTime includet it throws an Excepiton. Code without any Libarys works just fine. Want’s the Problem und how can I solve it?

---

## [How to make an apk from a processing sketch using command line](https://discourse.processing.org/t/how-to-make-an-apk-from-a-processing-sketch-using-command-line/9199)

<div class="topic-metadata">

**Author:** [@theinfo](https://discourse.processing.org/u/theinfo)\
**Replies:** 7\
**Last updated:** [May 9, 2019, 7:36am UTC](https://discourse.processing.org/t/how-to-make-an-apk-from-a-processing-sketch-using-command-line/9199 "2019-05-09T07:36:01Z")

</div>

How to make an apk from a processing sketch using command line

---

## [Use of volume keys](https://discourse.processing.org/t/use-of-volume-keys/10973)

<div class="topic-metadata">

**Author:** [@MichaelHecht](https://discourse.processing.org/u/MichaelHecht)\
**Replies:** 2\
**Last updated:** [May 7, 2019, 8:21am UTC](https://discourse.processing.org/t/use-of-volume-keys/10973 "2019-05-07T08:21:58Z")

</div>

Hi, under windows I used the mouse wheel for changing the Z-Position in a P3D-Environment. Now I want to do the same with the volume keys in android. Is this possible? Thanks in andvance Michael

---

## [Android Notifications](https://discourse.processing.org/t/android-notifications/1914)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 9\
**Last updated:** [May 7, 2019, 3:50am UTC](https://discourse.processing.org/t/android-notifications/1914 "2019-05-07T03:50:32Z")

</div>

EXAM LINK : https://www.androidauthority.com/how-to-create-android-notifications-707254/ I want to display a notification as shown in the figure. Is it possible to processing at android mode? If possible, please…

---

## [\[KetaiList\] API 7.0 error?](https://discourse.processing.org/t/ketailist-api-7-0-error/10623)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 9\
**Last updated:** [May 7, 2019, 3:48am UTC](https://discourse.processing.org/t/ketailist-api-7-0-error/10623 "2019-05-07T03:48:59Z")

</div>

Library used: Ketai UI\> KetaiList Is there a way to work with API 7.0? Fonts are not visible in 7.0 environment. I click on it but I can not see it. Please help me. I need your help.

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

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