# Cannot run sketch on old Android kitkat device, using Processing 4 IDE

**URL:** <https://discourse.processing.org/t/cannot-run-sketch-on-old-android-kitkat-device-using-processing-4-ide/46288>\
**Category:** Processing for Android\
**Created:** [April 28, 2025, 5:09pm UTC](https://discourse.processing.org/t/cannot-run-sketch-on-old-android-kitkat-device-using-processing-4-ide/46288 "2025-04-28T17:09:41Z")\
**Posts on this page:** 14\
**Page:** 3

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [May 3, 2025, 1:40pm UTC](https://discourse.processing.org/t/cannot-run-sketch-on-old-android-kitkat-device-using-processing-4-ide/46288/41 "2025-05-03T13:40:42Z")

</div>

From Wikipedia, the free encyclopedia

Android KitKat Version of the [Android](https://en.wikipedia.org/wiki/Android_(operating_system)) operating system  
[![200x124](https://upload.wikimedia.org/wikipedia/commons/thumb/d/d0/Android_KitKat_logo.svg/250px-Android_KitKat_logo.svg.png)](https://en.wikipedia.org/wiki/File:Android_KitKat_logo.svg)  
[![250x444](https://upload.wikimedia.org/wikipedia/commons/thumb/a/a4/Android_4.4.2_screenshot_%28Android_Emulator%29.png/250px-Android_4.4.2_screenshot_%28Android_Emulator%29.png)](https://en.wikipedia.org/wiki/File:Android_4.4.2_screenshot_(Android_Emulator).png)

Android 4.4.2 KitKat running on a [Nexus 5](https://en.wikipedia.org/wiki/Nexus_5)  
[Developer](https://en.wikipedia.org/wiki/Programmer) [Google](https://en.wikipedia.org/wiki/Google)  
[Released to  
manufacturing](https://en.wikipedia.org/wiki/Software_release_life_cycle#RTM) September 3, 2013; 11 years ago  
[General  
availability](https://en.wikipedia.org/wiki/Software_release_life_cycle#General_availability_(GA)) October 31, 2013; 11 years ago (as Android 4.4) June 25, 2014; 10 years ago (with Wearable Extensions)  
[Final release](https://en.wikipedia.org/wiki/Software_release_life_cycle) 4.4.4\_r2.0.1 (KTU84Q)[[1]](https://en.wikipedia.org/wiki/Android_KitKat#cite_note-1) / July 7, 2014; 10 years ago  
[Kernel](https://en.wikipedia.org/wiki/Kernel_(operating_system)) type [Monolithic](https://en.wikipedia.org/wiki/Monolithic_kernel) ([Linux](https://en.wikipedia.org/wiki/Linux_kernel))  
Preceded by [Android 4.3.1 “Jelly Bean”](https://en.wikipedia.org/wiki/Android_Jelly_Bean)  
Succeeded by [Android 5.0 “Lollipop”](https://en.wikipedia.org/wiki/Android_Lollipop)  
Official website [www.android.com/versions/kit-kat-4-4/](https://www.android.com/versions/kit-kat-4-4/) [![Edit this at Wikidata10x10](https://upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/20px-OOjs_UI_icon_edit-ltr-progressive.svg.png)](https://www.wikidata.org/wiki/Q2846920#P856)  
Support status  
Unsupported since October 2017  
Google Play Services support dropped since August 10, 2023

**Android KitKat** is the codename for the eleventh [Android](https://en.wikipedia.org/wiki/Android_(operating_system)) [mobile operating system](https://en.wikipedia.org/wiki/Mobile_operating_system), representing release version 4.4. Unveiled on September 3, 2013, KitKat focused primarily on optimizing the operating system for improved performance on entry-level devices with limited resources. On July 24, 2023, Google announced that [Google Play Services](https://en.wikipedia.org/wiki/Google_Play_Services) would no longer support KitKat in August of that year.[[2]](https://en.wikipedia.org/wiki/Android_KitKat#cite_note-2)[[3]](https://en.wikipedia.org/wiki/Android_KitKat#cite_note-3)[[4]](https://en.wikipedia.org/wiki/Android_KitKat#cite_note-4) The first phone with Android KitKat was the [Nexus 5](https://en.wikipedia.org/wiki/Nexus_5).

As of January 2025, 0.12% of Android devices run KitKat.[[5]](https://en.wikipedia.org/wiki/Android_KitKat#cite_note-5)

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [May 3, 2025, 2:37pm UTC](https://discourse.processing.org/t/cannot-run-sketch-on-old-android-kitkat-device-using-processing-4-ide/46288/42 "2025-05-03T14:37:39Z")

</div>

For whatever it’s worth, I just dug out my old Nexus 4 (which I believe is older than your device) and got this demo to run using the AndroidMode published on github referenced above. I also used Processing IDE version 4.3 since Android Mode seems to be broken in the recent 4.4.1.

```auto
void setup() {
  fullScreen();
  background(209);
  fill(255, 255, 0);
  rect(200,200,400,400);
}

void draw() {  
}

```

It’s really tricky, you have to get just the right combination of Processing IDE and AndroidMode version.

 ![n4](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/2/d/2d6cc4c4e95faa594ed1baee9cba57c596756674.jpeg)

---

<div class="post-metadata">

**Author:** ![enonod](https://avatars.discourse-cdn.com/v4/letter/e/85e7bf/32.png) [@enonod](https://discourse.processing.org/u/enonod)\
**Post date:** [May 3, 2025, 3:51pm UTC](https://discourse.processing.org/t/cannot-run-sketch-on-old-android-kitkat-device-using-processing-4-ide/46288/43 "2025-05-03T15:51:48Z")

</div>

@svan  
Thank you for still being there. My Note-8 GT-N5110 WiFi is 2013. Android 4.4.2  
I have come to the same conclusion that it is a critical combination and that the main criticality is the Android mode.  
Are you able to open the Modes/androidMode folder and open the file mode.properties where it gives the version number e.g. 271?  
Thanks

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [May 3, 2025, 3:59pm UTC](https://discourse.processing.org/t/cannot-run-sketch-on-old-android-kitkat-device-using-processing-4-ide/46288/44 "2025-05-03T15:59:09Z")

</div>

The AndroidMode that I referenced to run old apps has a version of 410.

 ![modeProps](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/3/2/3203140de486b1bbdc9dff7d50503bdf3d180abb.png)

---

<div class="post-metadata">

**Author:** ![enonod](https://avatars.discourse-cdn.com/v4/letter/e/85e7bf/32.png) [@enonod](https://discourse.processing.org/u/enonod)\
**Post date:** [May 3, 2025, 5:17pm UTC](https://discourse.processing.org/t/cannot-run-sketch-on-old-android-kitkat-device-using-processing-4-ide/46288/45 "2025-05-03T17:17:52Z")

</div>

@svan  
Thank you for that version number.  
I just downloaded the mac intel version Processing 4.3 and the Androidmode 410 from github.  
It did ask for the sdk path when I selected Android Mode in the PDE, even though it was correctly on the first line of the preferences.txt. My sdk contains platforms 'android-11; 18, 19, 20, 33, 35.  
Can you confirm that the Processing app (4.3) i simply the app and no installation files.

Well, my device has not changed in any way since I last successfully uploaded the game, no extra apps or anything else, except playing the game; yet it simply closes the sketch on arrival using exactly the setup you describe. There were no errors while building.  
That seems to only leave the sdk in some way. The original message some days ago at build time said the sdk platforms were not signed (probably because I copied instead of properly using sdkmanager. I went back and did so which corrected that problem.  
Baffled unless, as I say it is the sdk.  
EDIT: or java install.

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [May 3, 2025, 7:08pm UTC](https://discourse.processing.org/t/cannot-run-sketch-on-old-android-kitkat-device-using-processing-4-ide/46288/46 "2025-05-03T19:08:05Z")

</div>

> [@enonod](#):
>
> Can you confirm that the Processing app (4.3) i simply the app and no installation files.

Not sure what you mean by ‘installation files’? It’s just what I downloaded some time ago from the [Processing.org](http://Processing.org) website.

Are you trying to run a simple demo or the app that you wrote? Using the macBook or M2?

If I tried to run the incorrect AndroidMode on my old Nexus 4 I had the same problem as you; just refuses to run after building ok. As soon as I switched to AndroidMode version 410 (revised) it ran ok.

---

<div class="post-metadata">

**Author:** ![enonod](https://avatars.discourse-cdn.com/v4/letter/e/85e7bf/32.png) [@enonod](https://discourse.processing.org/u/enonod)\
**Post date:** [May 4, 2025, 6:11am UTC](https://discourse.processing.org/t/cannot-run-sketch-on-old-android-kitkat-device-using-processing-4-ide/46288/47 "2025-05-04T06:11:43Z")

</div>

@svan  
Thanks again.  
I just wanted to be sure that the Processing 4.3 that I obtained was complete (simply processing.app) and that there are no other files required to install anything. It seems not from your answer.

> [@svan](#):
>
> Are you trying to run a simple demo or the app that you wrote? Using the macBook or M2?

> [@enonod](#):
>
> I _just_ downloaded the mac _intel_ version Processing 4.3 and the Androidmode 410 from github.

I am using the macBook (intel); not the M2 (arm).

> [@enonod](#):
>
> using _exactly_ the setup you describe.

That includes the exact sketch that you used.

My AndroidMode came from the github below (the only one I know)…  
[Releases · processing/processing-android (github.com)](https://github.com/processing/processing-android/releases?page=1)

I note that you say you switched from **the** incorrect AndroidMode that had failed; which version? was it a ‘non-revised’ 410?  
I ask because I noticed that you also have added “**(revised)**” to 410.  
My AndroidMode ‘_mode.properties_’ file matches yours and I saw no indication on github of revision.  
Was your version from the same github as I just mentioned? If not can you please provide a URL. Perhaps ‘_the end is nigh_’.  
Thank you svan.

---

<div class="post-metadata">

**Author:** ![enonod](https://avatars.discourse-cdn.com/v4/letter/e/85e7bf/32.png) [@enonod](https://discourse.processing.org/u/enonod)\
**Post date:** [May 4, 2025, 8:33am UTC](https://discourse.processing.org/t/cannot-run-sketch-on-old-android-kitkat-device-using-processing-4-ide/46288/48 "2025-05-04T08:33:15Z")

</div>

@svan  
I realise what you mean by ‘revised’, it goes back to your post of 28 Apr. which Processing did not find and insisted I download AndroidMode, which defeated the experiment.  
I just tried that version again by placing it in the Mode folder and it again insisted I download AndroidMode. I did so but _this time_ on the second try, I dumped the folder and replaced it with your version. It recognised it and your sketch worked!!!  
Thank you so much for that single file lurking on the internet that nobody would ever find without a prompt. I wish I had thought of simply replacing the downloaded androidmode folder the first time. I guess that is how the tortured mind works.  
Again thank you, thank you, thank you.

---

<div class="post-metadata">

**Author:** ![enonod](https://avatars.discourse-cdn.com/v4/letter/e/85e7bf/32.png) [@enonod](https://discourse.processing.org/u/enonod)\
**Post date:** [May 4, 2025, 8:36am UTC](https://discourse.processing.org/t/cannot-run-sketch-on-old-android-kitkat-device-using-processing-4-ide/46288/49 "2025-05-04T08:36:46Z")

</div>

@shedMusic  
Thank you for all your time and assistance. You should notice that the problem has been solved by [svan] with a modified AndroidMode v410 which works with Processing 4.3 on the intel macBook pro. I expect to try it on the M2 because it has a translation from intel to arm.

---

<div class="post-metadata">

**Author:** ![shedMusic](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/shedmusic/32/601_2.png) [@shedMusic](https://discourse.processing.org/u/shedMusic)\
**Post date:** [May 4, 2025, 8:55am UTC](https://discourse.processing.org/t/cannot-run-sketch-on-old-android-kitkat-device-using-processing-4-ide/46288/50 "2025-05-04T08:55:03Z")

</div>

@enonod  
Great to hear it’s resolved!  
I’ll be looking to try and see why this particular set up works!

---

<div class="post-metadata">

**Author:** ![enonod](https://avatars.discourse-cdn.com/v4/letter/e/85e7bf/32.png) [@enonod](https://discourse.processing.org/u/enonod)\
**Post date:** [May 4, 2025, 9:19am UTC](https://discourse.processing.org/t/cannot-run-sketch-on-old-android-kitkat-device-using-processing-4-ide/46288/51 "2025-05-04T09:19:49Z")

</div>

@shedMusic  
It is definitely due to the modified/revised AndroidMode v410 from here…

[GitHub - ajavamind/processing-android-410-api-15: Processing-android AndroidMode version 4.5 (version 410) modified for devices using API 15](https://github.com/ajavamind/processing-android-410-api-15)

I transferred everything in a single folder, sdk as well and it worked on the M2 Mini.  
wow!

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [May 4, 2025, 11:39am UTC](https://discourse.processing.org/t/cannot-run-sketch-on-old-android-kitkat-device-using-processing-4-ide/46288/52 "2025-05-04T11:39:00Z")

</div>

Here is the original forum post concerning this issue. Please check out the github discussion also and the author will explain why the original distributed code did not work:  
[https://discourse.processing.org/t/androidmode-fails-on-new-galaxy-tab-a8/41742](https://discourse.processing.org/t/androidmode-fails-on-new-galaxy-tab-a8/41742)

---

<div class="post-metadata">

**Author:** ![enonod](https://avatars.discourse-cdn.com/v4/letter/e/85e7bf/32.png) [@enonod](https://discourse.processing.org/u/enonod)\
**Post date:** [May 4, 2025, 12:18pm UTC](https://discourse.processing.org/t/cannot-run-sketch-on-old-android-kitkat-device-using-processing-4-ide/46288/53 "2025-05-04T12:18:00Z")

</div>

@svan  
Thank you I will study that

---

<div class="post-metadata">

**Author:** ![shedMusic](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/shedmusic/32/601_2.png) [@shedMusic](https://discourse.processing.org/u/shedMusic)\
**Post date:** [May 4, 2025, 1:05pm UTC](https://discourse.processing.org/t/cannot-run-sketch-on-old-android-kitkat-device-using-processing-4-ide/46288/54 "2025-05-04T13:05:04Z")

</div>

@svan

Yes thanks! I keen to know what’s going on 👍

[Previous page](https://discourse.processing.org/t/cannot-run-sketch-on-old-android-kitkat-device-using-processing-4-ide/46288.md?page=2)
