# Processing for Android

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

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

**Page:** 32

---

## [LifeCycle callbacks](https://discourse.processing.org/t/lifecycle-callbacks/1305)

<div class="topic-metadata">

**Author:** [@shedMusic](https://discourse.processing.org/u/shedMusic)\
**Replies:** 4\
**Last updated:** [June 27, 2018, 11:43am UTC](https://discourse.processing.org/t/lifecycle-callbacks/1305 "2018-06-27T11:43:06Z")

</div>

Just a quick one this… I’m exploring the lifecycle callbacks to gain a better understanding of what is going on, but I can’t call super.onRestart() or super.onCreate() … all others … .super.onStart() …onPause(), etc are…

---

## [Notification builder](https://discourse.processing.org/t/notification-builder/1101)

<div class="topic-metadata">

**Author:** [@basher24](https://discourse.processing.org/u/basher24)\
**Replies:** 12\
**Last updated:** [June 26, 2018, 1:59pm UTC](https://discourse.processing.org/t/notification-builder/1101 "2018-06-26T13:59:29Z")

</div>

I built an android app that gets a message from a server and pass it to the notification … every thing work wonderful … when i close the app (shutdown) … i stop getting the notification … how can i make my app working …

---

## [Help with scrolling in android](https://discourse.processing.org/t/help-with-scrolling-in-android/1254)

<div class="topic-metadata">

**Author:** [@helplouis](https://discourse.processing.org/u/helplouis)\
**Replies:** 2\
**Last updated:** [June 25, 2018, 10:01pm UTC](https://discourse.processing.org/t/help-with-scrolling-in-android/1254 "2018-06-25T22:01:19Z")

</div>

Hi, I want to make a scroller in this app im working on but i dont want a scrolling bar, just to touch and drag like in most apps. How would I go about to do this ? pls help Alternatively, how can I detect which directi…

---

## [Alternative for Android Studio](https://discourse.processing.org/t/alternative-for-android-studio/1187)

<div class="topic-metadata">

**Author:** [@noel](https://discourse.processing.org/u/noel)\
**Replies:** 0\
**Last updated:** [June 23, 2018, 7:24pm UTC](https://discourse.processing.org/t/alternative-for-android-studio/1187 "2018-06-23T19:24:41Z")

</div>

If your ordinary home computer, like mine, can’t handle Android Studio (it takes half an hour to run some code!), I recommend to code on your device with the AIDE app. It has courses, to begin with, but you can also make…

---

## [Oh No, APwidgets again](https://discourse.processing.org/t/oh-no-apwidgets-again/1064)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 3\
**Last updated:** [June 23, 2018, 8:03am UTC](https://discourse.processing.org/t/oh-no-apwidgets-again/1064 "2018-06-23T08:03:51Z")

</div>

I am trying to add buttons(APwidgets) and stuff to my app that is built on processing for android. I got it to upload to my tablet using the android mode processing3, but it crashed. I exported it so I could tweak it i…

---

## [PApplet in Android mode](https://discourse.processing.org/t/papplet-in-android-mode/786)

<div class="topic-metadata">

**Author:** [@MGlolenstine](https://discourse.processing.org/u/MGlolenstine)\
**Replies:** 12\
**Last updated:** [June 20, 2018, 4:38am UTC](https://discourse.processing.org/t/papplet-in-android-mode/786 "2018-06-20T04:38:54Z")

</div>

I’m unable to use this function in the processing for android mode, because it’s first argument requires PApplet StaticMap m = new StaticMap(this, new com.modestmaps.providers.Microsoft.RoadProvider(), new Point2f(width…

---

## [Using MediaPlayer or SoundPool](https://discourse.processing.org/t/using-mediaplayer-or-soundpool/1080)

<div class="topic-metadata">

**Author:** [@CrispyCabot](https://discourse.processing.org/u/CrispyCabot)\
**Replies:** 1\
**Last updated:** [June 19, 2018, 11:12pm UTC](https://discourse.processing.org/t/using-mediaplayer-or-soundpool/1080 "2018-06-19T23:12:20Z")

</div>

So for like the last couple hours I have been trying to figure out how to play an mp3 file in my app. Everything I have tried looking up has like a hundred lines of code and I don’t even know what it is doing. I have nev…

---

## [I want to know how to turn off the cell phone when I press the back button. (at processing android)](https://discourse.processing.org/t/i-want-to-know-how-to-turn-off-the-cell-phone-when-i-press-the-back-button-at-processing-android/1041)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 5\
**Last updated:** [June 19, 2018, 7:41pm UTC](https://discourse.processing.org/t/i-want-to-know-how-to-turn-off-the-cell-phone-when-i-press-the-back-button-at-processing-android/1041 "2018-06-19T19:41:06Z")

</div>

I want to know how to turn off the cell phone when I press the back button. (at processing android) For example, in JAVA (PC) void keyPressed () { if (key == ESC) { key = 0; // Empêche d'utiliser la touche ESC …

---

## [Android mode editor to support wear calendar classes](https://discourse.processing.org/t/android-mode-editor-to-support-wear-calendar-classes/578)

<div class="topic-metadata">

**Author:** [@rudspring](https://discourse.processing.org/u/rudspring)\
**Replies:** 2\
**Last updated:** [June 19, 2018, 7:24pm UTC](https://discourse.processing.org/t/android-mode-editor-to-support-wear-calendar-classes/578 "2018-06-19T19:24:24Z")

</div>

Hi, I am trying to create a watchface for android wear which graphically shows calendar events. For this to work I require Android mode supporting the android.support.wearable.provider classes. It took a while for me t…

---

## [Ketai Library Release Date Question](https://discourse.processing.org/t/ketai-library-release-date-question/547)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [May 31, 2018, 1:18am UTC](https://discourse.processing.org/t/ketai-library-release-date-question/547 "2018-05-31T01:18:11Z")

</div>

I am a user who makes an application through processing. Once again, I sincerely appreciate the processing program tools. I also love you. I use KETAI libraries the most in processing. So I ask. When is the KETAI lib…

---

## [Replace colors in an image without having to iterate through all pixels](https://discourse.processing.org/t/replace-colors-in-an-image-without-having-to-iterate-through-all-pixels/840)

<div class="topic-metadata">

**Author:** [@MGlolenstine](https://discourse.processing.org/u/MGlolenstine)\
**Replies:** 3\
**Last updated:** [June 18, 2018, 3:51pm UTC](https://discourse.processing.org/t/replace-colors-in-an-image-without-having-to-iterate-through-all-pixels/840 "2018-06-18T15:51:35Z")

</div>

Let’s say that I have an image like this (in reality, I have a lot of them next to eachother, but let’s keep it simple) \[vt\] example picture and I’d like to replace background color (that’s the one that’s not roads) wi…

---

## [Buildfailed on my first project](https://discourse.processing.org/t/buildfailed-on-my-first-project/1036)

<div class="topic-metadata">

**Author:** [@sanjay](https://discourse.processing.org/u/sanjay)\
**Replies:** 2\
**Last updated:** [June 18, 2018, 6:54am UTC](https://discourse.processing.org/t/buildfailed-on-my-first-project/1036 "2018-06-18T06:54:17Z")

</div>

hi friend i have just started out processing and found that you could do android programming also so i installed the sdk .which was automatically done.made a simple code, connect my phone,sellected debugging and hit run …

---

## [Android: positioning of a toast](https://discourse.processing.org/t/android-positioning-of-a-toast/867)

<div class="topic-metadata">

**Author:** [@noel](https://discourse.processing.org/u/noel)\
**Replies:** 1\
**Last updated:** [June 12, 2018, 1:35am UTC](https://discourse.processing.org/t/android-positioning-of-a-toast/867 "2018-06-12T01:35:09Z")

</div>

Hi. My code for a toast is: void showToast(final String message) { act.runOnUiThread(new Runnable() { public void run() { android.widget.Toast.makeText(act.getApplicationContext(), message, android.widge…

---

## [Using Sound in Android](https://discourse.processing.org/t/using-sound-in-android/762)

<div class="topic-metadata">

**Author:** [@CrispyCabot](https://discourse.processing.org/u/CrispyCabot)\
**Replies:** 3\
**Last updated:** [June 7, 2018, 1:45pm UTC](https://discourse.processing.org/t/using-sound-in-android/762 "2018-06-07T13:45:39Z")

</div>

I’m trying to use apwidgets and I don’t understand why what I’m doing isn’t working. I downloaded apwidgets\_r44\_for\_Java1.5.zip and extracted it, and moved the apwidgets folder into the libraries folder for processing. …

---

## [listFiles() works in Java mode, but can't get it working for Android](https://discourse.processing.org/t/listfiles-works-in-java-mode-but-cant-get-it-working-for-android/750)

<div class="topic-metadata">

**Author:** [@helloDolly](https://discourse.processing.org/u/helloDolly)\
**Replies:** 2\
**Last updated:** [June 6, 2018, 2:03pm UTC](https://discourse.processing.org/t/listfiles-works-in-java-mode-but-cant-get-it-working-for-android/750 "2018-06-06T14:03:03Z")

</div>

String path = "/data/"; File\[\] files = listFiles(path); for (File i: files){ println("file: ", i); } This bit of code is causing me bothers. listFiles(path) just returns null in the Android emulator instead of a list…

---

## [Install an Android app from my Processing Android app](https://discourse.processing.org/t/install-an-android-app-from-my-processing-android-app/637)

<div class="topic-metadata">

**Author:** [@Ungarscool1](https://discourse.processing.org/u/Ungarscool1)\
**Replies:** 2\
**Last updated:** [June 4, 2018, 12:12am UTC](https://discourse.processing.org/t/install-an-android-app-from-my-processing-android-app/637 "2018-06-04T00:12:51Z")

</div>

Hello, I want install app via my processing app. I have see “INSTALL\_PACKAGE”, but how i can install app from a processing app?

---

## [How come my app shows up with underscores when downloaded?](https://discourse.processing.org/t/how-come-my-app-shows-up-with-underscores-when-downloaded/648)

<div class="topic-metadata">

**Author:** [@CrispyCabot](https://discourse.processing.org/u/CrispyCabot)\
**Replies:** 2\
**Last updated:** [June 3, 2018, 2:34pm UTC](https://discourse.processing.org/t/how-come-my-app-shows-up-with-underscores-when-downloaded/648 "2018-06-03T14:34:01Z")

</div>

I uploaded my app to the play store, and it shows up regular in the play store, but when downloaded, on my home screen it shows up with underscores rather than spaces. I think this is also changing search results because…

---

## [saveStrings("/sdcard/" + "basher.csv" , text) not working on Android?](https://discourse.processing.org/t/savestrings-sdcard-basher-csv-text-not-working-on-android/535)

<div class="topic-metadata">

**Author:** [@basher24](https://discourse.processing.org/u/basher24)\
**Replies:** 5\
**Last updated:** [June 3, 2018, 12:11am UTC](https://discourse.processing.org/t/savestrings-sdcard-basher-csv-text-not-working-on-android/535 "2018-06-03T00:11:37Z")

</div>

Why saveStrings("/sdcard/" + “basher.csv” , text) not working on android ?

---

## [Writing permissions at runtime (Android Mode 4.0.1)](https://discourse.processing.org/t/writing-permissions-at-runtime-android-mode-4-0-1/549)

<div class="topic-metadata">

**Author:** [@rorsch](https://discourse.processing.org/u/rorsch)\
**Replies:** 1\
**Last updated:** [May 31, 2018, 8:50am UTC](https://discourse.processing.org/t/writing-permissions-at-runtime-android-mode-4-0-1/549 "2018-05-31T08:50:55Z")

</div>

I’m using the code below to ask for writing permissions on my Processing/Android sketch: The problem is that ActivityCompat is not recognised (nor import android.support.v4.app.ActivityCompat). I found a support-v4-2…

---

## [Draw() function never activated after the app is executed](https://discourse.processing.org/t/draw-function-never-activated-after-the-app-is-executed/461)

<div class="topic-metadata">

**Author:** [@yassin](https://discourse.processing.org/u/yassin)\
**Replies:** 3\
**Last updated:** [May 29, 2018, 9:48am UTC](https://discourse.processing.org/t/draw-function-never-activated-after-the-app-is-executed/461 "2018-05-29T09:48:29Z")

</div>

I don’t know why my draw function is not working here. I’m wokring with Android (under Android Studio) and it never happened before (at least while I was testing the example available on the website). So my sketch didn’…

---

## [How about a .apk option?](https://discourse.processing.org/t/how-about-a-apk-option/356)

<div class="topic-metadata">

**Author:** [@gpteacher](https://discourse.processing.org/u/gpteacher)\
**Replies:** 3\
**Last updated:** [May 25, 2018, 8:23pm UTC](https://discourse.processing.org/t/how-about-a-apk-option/356 "2018-05-25T20:23:08Z")

</div>

First, compliments to the foundation for adding Android! I’m a high school teacher and I’d love to give my students the option of creating Android apps. But it is cumbersome for many high school students to have to mod…

---

## [Using the PMatrix3D class in Android Studio](https://discourse.processing.org/t/using-the-pmatrix3d-class-in-android-studio/248)

<div class="topic-metadata">

**Author:** [@yassin](https://discourse.processing.org/u/yassin)\
**Replies:** 2\
**Last updated:** [May 23, 2018, 9:55pm UTC](https://discourse.processing.org/t/using-the-pmatrix3d-class-in-android-studio/248 "2018-05-23T21:55:47Z")

</div>

I’m developing a game for Android, it’s a 3D platform where you move a ball depending on the position of the phone. Everything is set up for the development, I have the processing core jar dependency included, it’s not t…

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