Android Mode Compiler, problem not solved yet

A few months ago, I published a post about the problems encountered while trying to build a working version of Android Mode for Processing.

After I upgraded to Processing 4.x.x and after I updated my smartphone Android version to 11, I could not build an IDE working configuration. Any Installation procedure I found online that I followed did not help.
It was kind from a few users to propose some ideas. I tried to use these ideas without any success.

I have tens of programs that I developed and used in the past to run in my smartphone and now I am not able to use them. Also, now I am not able to develop new ones anymore.

I am addressing the community Forum again for help to solve this problem.

A step-by-step proven procedure to get a valid and working Processing- Android Mode - SDK configuration would be much appreciated, and I assume much beneficial for many users.

Thanks

I found this:

I did post my exploration of this in that topic.

Related:

Consider reporting an issue here:

This is for Processing but gives you some idea of how to report issues:

If it is reported in the wrong repository you will be advised.

FYI I am a community member just like you.

:)

For whatever it’s worth, I just successfully ran the following code on my Samsung Galaxy Tab A8 using the Processing editor version 4.5.2 in Android mode (MacOS Tahoe 26.5):

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

void draw() {  
}

Thanks, SVAN, for this answer.
How did you install Android Mode? Did you use the IDE for that and then let the SDK load automatically?
What Android version did you use on the smartphone running your sketch?

/

I let the Processing IDE do that. Under the menubar at the top of the screen select Tools/Manage Tools… then select “Modes” tab. Make sure Android Mode for Processing 4 is checked.

I used to see a ‘modes’ folder in the Documents/Processing/libraries folder but I no longer see that on my system (MacOS). I do see two Android folders as shown below.

On MacOS the Android sdk is location on the home drive at /Users/xxxxx/Library/Android/sdk. A screenshot of that folder is shown below.

I think that it is important to also have Android Studio installed on your system. It helps set everything up correctly in my experience; I’ve never been able to use it to write Android apps due to the learning curve and have always found writing Android code easier in the Processing IDE. However, others here have been able to use it for creating Android apps.

The main thing with Android Studio is that it helps put all the files in their correct locations. If you create a dummy project you should see the Android menubar across the top of your screen. If you select “Tools” you should see the SDK Manager. I have included screenshots for Settings/SDK Platforms and SDK Tools on my system see you can see what you are able to do with this tool.

I’m using a Samsung Galaxy A8 tablet running Android version 14.

I know it’s convoluted and complicated but hopefully you will be able to get your system up and running.

Hello @MPROCD,

I was able to add the required version from the command line tools:

Do a Google Search for “How to download and install Android SDK 33 (Android 13.0 “Tiramisu”) with command line tools”.

The Google AI Overview provided details.

NOTE:
The command line tools are already available to you in the Android SDK folder in your Sketchbook folder.

All I needed was this:

sdkmanager “platforms;android-33” “build-tools;33.0.2”

And was able to run it on the command line from the correct folder:

I was then able to run a sketch on my Android phone.

This worked for me on Windows 10.
I had the files from an old install but wanted to try this approach with a fresh install.

UPDATE:

:)