# Processing for Android

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

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

**Page:** 23

---

## [Android width and height issue](https://discourse.processing.org/t/android-width-and-height-issue/14511)

<div class="topic-metadata">

**Author:** [@Yash](https://discourse.processing.org/u/Yash)\
**Replies:** 8\
**Last updated:** [October 10, 2019, 4:14am UTC](https://discourse.processing.org/t/android-width-and-height-issue/14511 "2019-10-10T04:14:34Z")

</div>

Hi…i am displaying text at width/2-100 , height/2 -100 ,the ellipse is at (width/2 , height/2 ,200,200)…The text is expected to start at the beginning of the ellipse…but it varies according to the phone…in some phones it…

---

## [Tracking high score for android](https://discourse.processing.org/t/tracking-high-score-for-android/678)

<div class="topic-metadata">

**Author:** [@CrispyCabot](https://discourse.processing.org/u/CrispyCabot)\
**Replies:** 6\
**Last updated:** [June 4, 2018, 3:03pm UTC](https://discourse.processing.org/t/tracking-high-score-for-android/678 "2018-06-04T15:03:28Z")

</div>

So it’s all in the title. I have no idea what to do. I was hoping loadStrings and saveStrings would work but it didn’t so I’m assuming these don’t work with processing for android. So how would I go about tracking a high…

---

## [Main UI Thread error](https://discourse.processing.org/t/main-ui-thread-error/14386)

<div class="topic-metadata">

**Author:** [@Yash](https://discourse.processing.org/u/Yash)\
**Replies:** 14\
**Last updated:** [October 9, 2019, 4:17pm UTC](https://discourse.processing.org/t/main-ui-thread-error/14386 "2019-10-09T16:17:48Z")

</div>

hi…iam integrating ads with my game and publish it…Iam calling reward() in my sketch when the user clicks an ellipse and reward him… error: java.lang.IllegalStateException: isLoaded must be called on the main UI thread. …

---

## [Change the PRESENT mode background color in android](https://discourse.processing.org/t/change-the-present-mode-background-color-in-android/14006)

<div class="topic-metadata">

**Author:** [@noel](https://discourse.processing.org/u/noel)\
**Replies:** 8\
**Last updated:** [October 8, 2019, 11:52pm UTC](https://discourse.processing.org/t/change-the-present-mode-background-color-in-android/14006 "2019-10-08T23:52:48Z")

</div>

In normal java mode we can change the frame bacground color with f.i.: void setup(){ size(200,200); frame.setBackground(new java.awt.Color( 255 , 0 , 0 )); } But android does not work with the awt lib, but seemingly t…

---

## [Android:theme error / android mode version 3](https://discourse.processing.org/t/android-theme-error-android-mode-version-3/14504)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 1\
**Last updated:** [October 8, 2019, 9:50am UTC](https://discourse.processing.org/t/android-theme-error-android-mode-version-3/14504 "2019-10-08T09:50:01Z")

</div>

android mode version 3 Good morning. As follows I get an error when doing AndroidManifest.xml What should I do? \<?xml version="1.0" encoding="UTF-8"?\> \<manifest xmlns:android="http://schemas.android.com/apk/res/andro…

---

## [Limit Methods to only when compiled to android](https://discourse.processing.org/t/limit-methods-to-only-when-compiled-to-android/14408)

<div class="topic-metadata">

**Author:** [@F53](https://discourse.processing.org/u/F53)\
**Replies:** 2\
**Last updated:** [October 4, 2019, 12:41pm UTC](https://discourse.processing.org/t/limit-methods-to-only-when-compiled-to-android/14408 "2019-10-04T12:41:58Z")

</div>

I am making a game for both android and pc, and have to import stuff exclusive for android. I want to be able to do something like this, so in the case of me compiling for a non-android version, it wont give compile err…

---

## [How to target android sdk version 28 in order to put an app on the play store?](https://discourse.processing.org/t/how-to-target-android-sdk-version-28-in-order-to-put-an-app-on-the-play-store/13348)

<div class="topic-metadata">

**Author:** [@Godeta](https://discourse.processing.org/u/Godeta)\
**Replies:** 13\
**Last updated:** [October 4, 2019, 12:29pm UTC](https://discourse.processing.org/t/how-to-target-android-sdk-version-28-in-order-to-put-an-app-on-the-play-store/13348 "2019-10-04T12:29:58Z")

</div>

Hello everyone ^^, I tried all day searching everywhere why can’t I put my android app on the play store. This is my first time trying to do so and the program is working perfectly fine on my phone but when I try to put …

---

## [Saving and Loading .txt files (ANDROID)](https://discourse.processing.org/t/saving-and-loading-txt-files-android/14247)

<div class="topic-metadata">

**Author:** [@F53](https://discourse.processing.org/u/F53)\
**Replies:** 10\
**Last updated:** [October 3, 2019, 10:00pm UTC](https://discourse.processing.org/t/saving-and-loading-txt-files-android/14247 "2019-10-03T22:00:59Z")

</div>

TL;DR saving text files with "data/ex" paths gives an error that apparently can be solved with FileInputStream, but that class does not work/exist in processing 3.5.3. I am using text files for saving an individual top …

---

## [Oncreate() method](https://discourse.processing.org/t/oncreate-method/14388)

<div class="topic-metadata">

**Author:** [@Yash](https://discourse.processing.org/u/Yash)\
**Replies:** 3\
**Last updated:** [October 3, 2019, 9:32am UTC](https://discourse.processing.org/t/oncreate-method/14388 "2019-10-03T09:32:11Z")

</div>

Why does the oncreate method doesn’t get called when written inside a activity/basic class. But gets called when written independently in processing. Ex: publc class A extends Activity { Public void onCreate(Bundle s…

---

## [Saving table files in android](https://discourse.processing.org/t/saving-table-files-in-android/14262)

<div class="topic-metadata">

**Author:** [@Srihari](https://discourse.processing.org/u/Srihari)\
**Replies:** 1\
**Last updated:** [October 1, 2019, 3:48pm UTC](https://discourse.processing.org/t/saving-table-files-in-android/14262 "2019-10-01T15:48:39Z")

</div>

I am not able to save table file in processing android. I have microsoft exel on the mobile I used this syntax - save(tablename,location); I used location as data/table.csv Thank you for the help

---

## [Interstitial ad](https://discourse.processing.org/t/interstitial-ad/14338)

<div class="topic-metadata">

**Author:** [@Yash](https://discourse.processing.org/u/Yash)\
**Replies:** 3\
**Last updated:** [October 1, 2019, 10:26am UTC](https://discourse.processing.org/t/interstitial-ad/14338 "2019-10-01T10:26:58Z")

</div>

hello everyone ive completed creating my game…but iam facing so much trouble from 2 weeks implementing either interstitial or video ads.The code executes without any error ads doesnt show.i want to publish my app…any hel…

---

## [Loading 3D models in android mode and adding textures (how to)](https://discourse.processing.org/t/loading-3d-models-in-android-mode-and-adding-textures-how-to/14339)

<div class="topic-metadata">

**Author:** [@Waboqueox](https://discourse.processing.org/u/Waboqueox)\
**Replies:** 1\
**Last updated:** [October 1, 2019, 7:37am UTC](https://discourse.processing.org/t/loading-3d-models-in-android-mode-and-adding-textures-how-to/14339 "2019-10-01T07:37:44Z")

</div>

Hi there!! I’m having problems loading 3d models in android. At java mode, it works nice :open\_mouth: : But using android mode I can’t even load it, and importing it to android studio and adding some code on the man…

---

## [Video ads-help please](https://discourse.processing.org/t/video-ads-help-please/14228)

<div class="topic-metadata">

**Author:** [@Yash](https://discourse.processing.org/u/Yash)\
**Replies:** 0\
**Last updated:** [September 27, 2019, 3:16am UTC](https://discourse.processing.org/t/video-ads-help-please/14228 "2019-09-27T03:16:59Z")

</div>

I get no error but video ad doesn’t show up. import android.os.Looper;//for setup() if needed import android.os.Bundle; import android.view.Window; import android.widget.RelativeLayout; import android.app.Activity; …

---

## [Admobs- rewarded video implementation](https://discourse.processing.org/t/admobs-rewarded-video-implementation/14176)

<div class="topic-metadata">

**Author:** [@Yash](https://discourse.processing.org/u/Yash)\
**Replies:** 1\
**Last updated:** [September 26, 2019, 6:48am UTC](https://discourse.processing.org/t/admobs-rewarded-video-implementation/14176 "2019-09-26T06:48:21Z")

</div>

Could some one please show me a way of implementing video ads?

---

## [Loading images from subfolders](https://discourse.processing.org/t/loading-images-from-subfolders/14140)

<div class="topic-metadata">

**Author:** [@F53](https://discourse.processing.org/u/F53)\
**Replies:** 4\
**Last updated:** [September 24, 2019, 9:43am UTC](https://discourse.processing.org/t/loading-images-from-subfolders/14140 "2019-09-24T09:43:01Z")

</div>

I am developing a game in android and have a lot of images that I need to load, so its much easier for me to use subfolders, but when attempting to load an image in a subfolder, I get this error: java.lang.IllegalArgume…

---

## [Error Loading Shader in Android Studio](https://discourse.processing.org/t/error-loading-shader-in-android-studio/14086)

<div class="topic-metadata">

**Author:** [@Towelie](https://discourse.processing.org/u/Towelie)\
**Replies:** 2\
**Last updated:** [September 21, 2019, 7:08am UTC](https://discourse.processing.org/t/error-loading-shader-in-android-studio/14086 "2019-09-21T07:08:08Z")

</div>

Hello, My code snippet is below. First off just in case it is relevant, I moved my .glsl file to the main res folder to get around an error with having path separators in the file name. It seems to accept that now but…

---

## [TouchScreens and mousereleased()](https://discourse.processing.org/t/touchscreens-and-mousereleased/6135)

<div class="topic-metadata">

**Author:** [@metype](https://discourse.processing.org/u/metype)\
**Replies:** 3\
**Last updated:** [September 21, 2019, 4:38am UTC](https://discourse.processing.org/t/touchscreens-and-mousereleased/6135 "2019-09-21T04:38:12Z")

</div>

When using a mouse and keyboard this code works fine and draws like it is supposed to, but when using a touchscreen and taking my finger off of the screen, the mouseReleased() function never seems to get called. color c…

---

## [\[Android\] How to lock BACK button & keyboard // HELP ME~](https://discourse.processing.org/t/android-how-to-lock-back-button-keyboard-help-me/14024)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 24\
**Last updated:** [September 18, 2019, 3:28pm UTC](https://discourse.processing.org/t/android-how-to-lock-back-button-keyboard-help-me/14024 "2019-09-18T15:28:03Z")

</div>

Question 1 Hopefully the application won’t turn off to hit the back button. Is there a way to keep the app from turning off? Press the button to turn off. Is there a way to prevent the application from turning off? …

---

## [Process id issue](https://discourse.processing.org/t/process-id-issue/14012)

<div class="topic-metadata">

**Author:** [@Yash](https://discourse.processing.org/u/Yash)\
**Replies:** 0\
**Last updated:** [September 16, 2019, 10:20am UTC](https://discourse.processing.org/t/process-id-issue/14012 "2019-09-16T10:20:14Z")

</div>

Hi everyone.ive completed my project.but every time i debug my app it says cannot find process id…what is process id how to fix it? …will it be useful in implementing ads?

---

## [Desktop vs. Android](https://discourse.processing.org/t/desktop-vs-android/13604)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 6\
**Last updated:** [September 16, 2019, 4:11am UTC](https://discourse.processing.org/t/desktop-vs-android/13604 "2019-09-16T04:11:40Z")

</div>

I don’t get it, really don’t. I have a sketch which draws two spheres using code from the examples. The outer sphere is drawn just barely bigger than the inner sphere. The inner sphere uses an alpha image that is tran…

---

## [Help with Sketch on Processing Android](https://discourse.processing.org/t/help-with-sketch-on-processing-android/13891)

<div class="topic-metadata">

**Author:** [@Marci1432](https://discourse.processing.org/u/Marci1432)\
**Replies:** 2\
**Last updated:** [September 10, 2019, 9:05am UTC](https://discourse.processing.org/t/help-with-sketch-on-processing-android/13891 "2019-09-10T09:05:27Z")

</div>

I´ve made a drawing program on Processing Windows and it works just fine there. The sketch uses a lot of images. But now that I´m finished I wanted to make the sketch into an app. When I try to load the sketch on android…

---

## [Android mode 40% frame drop, without code](https://discourse.processing.org/t/android-mode-40-frame-drop-without-code/13536)

<div class="topic-metadata">

**Author:** [@madscience2728](https://discourse.processing.org/u/madscience2728)\
**Replies:** 3\
**Last updated:** [September 2, 2019, 4:14am UTC](https://discourse.processing.org/t/android-mode-40-frame-drop-without-code/13536 "2019-09-02T04:14:49Z")

</div>

void setup() { } void draw() { println(frameRate); } That is the only code. Even with a diy framerate check instead of println(frameRate); same results. Tested on Galaxy S9: sometimes stable 60fps, 70% of the time …

---

## [Error on Saving File, if the string has chars sourced from the key variable](https://discourse.processing.org/t/error-on-saving-file-if-the-string-has-chars-sourced-from-the-key-variable/13731)

<div class="topic-metadata">

**Author:** [@hutty](https://discourse.processing.org/u/hutty)\
**Replies:** 3\
**Last updated:** [September 9, 2019, 12:40am UTC](https://discourse.processing.org/t/error-on-saving-file-if-the-string-has-chars-sourced-from-the-key-variable/13731 "2019-09-09T00:40:24Z")

</div>

I’m working on an android processing app with APDE and have an issue. When I save a PImage, with save(), with a valid file path it works. However if I make that filepath string from a string of my text entry box, it do…

---

## [\[Android\] Help me~ // Application turning off & keyboard](https://discourse.processing.org/t/android-help-me-application-turning-off-keyboard/13872)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [September 8, 2019, 10:03am UTC](https://discourse.processing.org/t/android-help-me-application-turning-off-keyboard/13872 "2019-09-08T10:03:14Z")

</div>

Please refer to the image. Question 1\>\> Press the button to turn off. Is there a way to prevent the application from turning off? Question 2\>\> When writing with the keyboard English is available but Korean is no…

---

## [Scrollbars up and down to change the positions of the text](https://discourse.processing.org/t/scrollbars-up-and-down-to-change-the-positions-of-the-text/13521)

<div class="topic-metadata">

**Author:** [@Sajeel1995](https://discourse.processing.org/u/Sajeel1995)\
**Replies:** 9\
**Last updated:** [September 5, 2019, 5:40pm UTC](https://discourse.processing.org/t/scrollbars-up-and-down-to-change-the-positions-of-the-text/13521 "2019-09-05T17:40:07Z")

</div>

Kindly tell me how I can make scrollbars up and down to change the positions of the text. I am using this link (https://processing.org/examples/scrollbar.html) but it does not work for me. I am waiting for a response.

---

## [Samsung Galaxy Tab s5e](https://discourse.processing.org/t/samsung-galaxy-tab-s5e/11837)

<div class="topic-metadata">

**Author:** [@samolet4e](https://discourse.processing.org/u/samolet4e)\
**Replies:** 6\
**Last updated:** [September 5, 2019, 3:18pm UTC](https://discourse.processing.org/t/samsung-galaxy-tab-s5e/11837 "2019-09-05T15:18:49Z")

</div>

Hello. Is it possible to get sketches from Processing IDE to Samsung Galaxy Tab s5e? This tablet runs Android 9 Pie One UI. I was unable to encounter a video tutorial in YouTube no matter how I tried. Does anybody have s…

---

## [Draw on top of video in Android Mode](https://discourse.processing.org/t/draw-on-top-of-video-in-android-mode/13657)

<div class="topic-metadata">

**Author:** [@aristizabal95](https://discourse.processing.org/u/aristizabal95)\
**Replies:** 4\
**Last updated:** [September 5, 2019, 4:04am UTC](https://discourse.processing.org/t/draw-on-top-of-video-in-android-mode/13657 "2019-09-05T04:04:11Z")

</div>

I have a relatively simple question, but I haven’t been able to crack this problem. I need to draw a sketch on top of a video that’s being played with MediaPlayer and SurfaceView. This sketch draws some GUI buttons, and …

---

## [Galaxy Tab S5e not connecting](https://discourse.processing.org/t/galaxy-tab-s5e-not-connecting/13782)

<div class="topic-metadata">

**Author:** [@Willis](https://discourse.processing.org/u/Willis)\
**Replies:** 0\
**Last updated:** [September 3, 2019, 9:35pm UTC](https://discourse.processing.org/t/galaxy-tab-s5e-not-connecting/13782 "2019-09-03T21:35:28Z")

</div>

I want to use my new Galaxy Tab S5e with Processing and it’s not showing up as a device in Processing. I’m using Processing 3.5.3 with Android mode 4.0.4 installed. I’ve turned Developer mode to “on” on the tablet by hi…

---

## [About apk performance?](https://discourse.processing.org/t/about-apk-performance/13052)

<div class="topic-metadata">

**Author:** [@luxregina](https://discourse.processing.org/u/luxregina)\
**Replies:** 3\
**Last updated:** [August 31, 2019, 6:00am UTC](https://discourse.processing.org/t/about-apk-performance/13052 "2019-08-31T06:00:11Z")

</div>

Hello! I’ve just starting playing with the Android for processing library: I’m quite excited about these new capabilities. However, I have a few questions about performance. I’ve done 2 tries: Playing a simple anima…

---

## [Memory error when trying to load many image files](https://discourse.processing.org/t/memory-error-when-trying-to-load-many-image-files/12634)

<div class="topic-metadata">

**Author:** [@NoName](https://discourse.processing.org/u/NoName)\
**Replies:** 14\
**Last updated:** [August 31, 2019, 4:37am UTC](https://discourse.processing.org/t/memory-error-when-trying-to-load-many-image-files/12634 "2019-08-31T04:37:29Z")

</div>

I ask for help and forgiveness if the question is stupid. But I ran into a problem. I am from Ukraine and my English is bad, so I am writing through a translator, do not hit for errors, please) The essence of the prob…

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

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