Android Programming for Beginners

Thanks for the feedback.

I found your issue on GitHub here:
Android mode no longer works in Processing 4.4.1 · Issue #777 · processing/processing-android · GitHub

The GitHub issue is for a MacOS and does not mention Windows.

I did a Windows test with this configuration:

  • Windows 10 Pro Version 22H2
  • Processing 4.4.4
  • Motorola Android Phone (Android version 14)
  • Android Mode for Processing 4.6.1 (Installed July 28).
  • I did an SDK update from the Processing menu.

It seemed to work out of the box:

I was not able to get the emulator working in Android Mode for Processing 4
Not yet!

Code
void setup() {
  // Use full screen mode
  fullScreen(P3D);
  noStroke();  // Optional: Remove stroke for 3D objects
}

void draw() {
  background(0);  // Set background to black
  
  lights();
  
  // Move the origin of the coordinate system to the center
  translate(width / 2, height / 2, 0); 
  
  // Rotate the box over time
  rotateX(frameCount * TAU/360); 
  rotateY(frameCount * TAU/360); 

  // Draw a 3D box
  fill(255, 0, 0);  // Red color for the box
  box(200);  // Draw a 3D box with size 200 units
}
Console output
Build folder: D:\temp\android643224006342175877sketch
WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33

This Android Gradle plugin (7.1.0) was tested up to compileSdk = 32

This warning can be suppressed by adding
    android.suppressUnsupportedCompileSdk=33
to this project's gradle.properties

The build will continue, but you are strongly encouraged to update your project to
use a newer Android Gradle Plugin that has been tested with compileSdk = 33
> Task :app:preBuild UP-TO-DATE
> Task :app:preDebugBuild UP-TO-DATE
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :app:compileDebugAidl NO-SOURCE
> Task :app:compileDebugRenderscript NO-SOURCE
> Task :app:generateDebugBuildConfig
> Task :app:javaPreCompileDebug
> Task :app:generateDebugResValues
> Task :app:generateDebugResources
> Task :app:checkDebugAarMetadata
> Task :app:createDebugCompatibleScreenManifests
> Task :app:extractDeepLinksDebug
> Task :app:processDebugMainManifest
> Task :app:processDebugManifest
> Task :app:mergeDebugShaders
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :app:mergeDebugAssets
> Task :app:compressDebugAssets
> Task :app:processDebugJavaRes NO-SOURCE
> Task :app:checkDebugDuplicateClasses
> Task :app:mergeDebugJniLibFolders
> Task :app:mergeDebugNativeLibs NO-SOURCE
> Task :app:stripDebugDebugSymbols NO-SOURCE
> Task :app:validateSigningDebug
> Task :app:writeDebugAppMetadata
> Task :app:writeDebugSigningConfigVersions
> Task :app:processDebugManifestForPackage
> Task :app:mergeDebugResources
> Task :app:processDebugResources
> Task :app:desugarDebugFileDependencies

> Task :app:compileDebugJavaWithJavac
Annotation processing got disabled, since it requires a 1.6 compliant JVM

> Task :app:dexBuilderDebug
> Task :app:mergeDebugJavaResource
> Task :app:mergeExtDexDebug
> Task :app:mergeDexDebug
> Task :app:packageDebug
> Task :app:createDebugApkListingFileRedirect
> Task :app:assembleDebug

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 8s
27 actionable tasks: 27 executed
Exploration < Click to expand!

Related posts:

Additional references:

:)