Sorry for the length of this.
I am using Big Sur mac and old Samsung GT-N5110 Android 4.4, because two years ago I wrote a game for it which works. I believe I originally used Processing 3.5.4 and upgraded to 4.0.1. All processing work got removed.
I now started again with Processing 4.1.2.
I have installed Android SDK using Android Studio (which I don’t use) in Documents/Processing/Android/sdk. I used the Studio to add 2 platforms for Android 4.4.
I used the Processing 4.1.2 IDE to install ‘Android Mode for Processing 4’.
I modified the game. I sent it to a new Samsung with Android 12 and it works. I send it to old Samsung and many get IDE errors. The following eliminates the need to quote those.
To simplify, I sent the following sketch properly formatted to new Samsung. Works perfect.
Sent it to old Samsung no errors on IDE but on the device I get ‘Unfortunately sketch xxx has stopped’.
void setup() { size(500,500); rect(50,50,100,100); }
void draw() { }
I used debug and breakpoint on ‘size()’ line, same outcome without stepping.
The sdk path is set in the preferences.txt. That file follows below and I would like to know if anything is wrong with it to cause the problem or if anyone can suggest why what is sent to old Samsung causes it to stop.
ANDROID_SDK=/Users/Donald/Documents/Processing/Android/sdk
JAVA_HOME=/Applications/Processing.app/Contents/runtime/Contents/Home
PATH=/Applications/Processing.app/Contents/runtime/Contents/Home/bin:/Users/Donald/Documents/Processing/Android/sdk/platform-tools:/Users/Donald/Documents/Processing/Android/sdk/cmdline-tools/latest:/Applications/Processing.app/Contents/runtime/Contents/Home/bin:/Users/Donald/Documents/Processing/Android/sdk/platform-tools:/Users/Donald/Documents/Processing/Android/sdk/cmdline-tools/latest:null
android.gradle_plugin=4.1.3
android.sdk.appcompat=1.6.0
android.sdk.ar=1.37.0
android.sdk.gvr=1.180.0
android.sdk.path=/Users/Donald/Documents/Processing/Android/sdk
android.sdk.play_services=18.0.0
android.sdk.target=30
android.sdk.target.wear=30
android.sdk.target.wear_arm=24
android.sdk.v4legacy=1.0.0
android.sdk.wear=2.9.0
buttons.hide.image=false
chooser.files.native=true
console.auto_clear=true
console.font.size=12
console.head_padding=10
console.length=500
console.lines=4
console.scrollback.chars=40000
console.scrollback.lines=500
console.temp.days=7
contribution.backup.on_install=true
contribution.backup.on_remove=true
editor.caret.blink=true
editor.caret.block=false
editor.completion.auto_close=false
editor.divider.size=0
editor.font.family=Monospaced
editor.font.size=12
editor.indent=true
editor.input_method_support=false
editor.keys.alternative_cut_copy_paste=false
editor.keys.home_and_end_travel_far=true
editor.keys.home_and_end_travel_smart=true
editor.keys.shift_backspace_is_delete=false
editor.smooth=true
editor.sync_folder_and_filename=true
editor.tabs.expand=true
editor.tabs.size=2
editor.token.comment1.style=#666666,plain
editor.token.comment2.style=#666666,plain
editor.token.function1.style=#006699,plain
editor.token.function2.style=#006699,plain
editor.token.function3.style=#669900,plain
editor.token.function4.style=#006699,bold
editor.token.invalid.style=#666666,bold
editor.token.keyword1.style=#33997e,plain
editor.token.keyword2.style=#33997e,plain
editor.token.keyword3.style=#669900,plain
editor.token.keyword4.style=#d94a7a,plain
editor.token.keyword5.style=#e2661a,plain
editor.token.keyword6.style=#33997e,plain
editor.token.label.style=#666666,bold
editor.token.literal1.style=#7D4793,plain
editor.token.literal2.style=#718a62,plain
editor.token.operator.style=#006699,plain
editor.untitled.prefix=sketch_
editor.untitled.suffix=yyMMdd
editor.watcher=true
editor.watcher.debug=false
editor.watcher.window=1500
editor.window.height.default=600
editor.window.height.min=450
editor.window.width.default=700
editor.window.width.min=400
editor.zoom=100%
editor.zoom.auto=true
export.application.embed_java=true
export.application.fullscreen=false
export.application.stop=true
export.delete_target_folder=true
instance_server.key=0.2136817906971219
instance_server.port=49887
last.sketch.count=0
last.sketch.mode=processing.mode.java.JavaMode
last.sketch.restore=true
mode.last=processing.mode.android.AndroidMode
pdex.autoSave.autoSaveByDefault=true
pdex.autoSave.autoSaveEnabled=false
pdex.autoSave.promptDisplay=true
pdex.autoSaveInterval=5
pdex.completion=false
pdex.completion.trigger=false
pdex.dbgOutput=false
pdex.errorCheckEnabled=true
pdex.inspectMode.hotkey=true
pdex.suggest.imports=true
pdex.warningsEnabled=true
pdex.writeErrorLogs=false
platform.auto_file_type_associations=true
preproc.color_datatype=true
preproc.enhanced_casting=true
preproc.output_parse_tree=false
preproc.save_build_files=false
preproc.substitute_floats=true
preproc.substitute_unicode=true
preproc.web_colors=true
proxy.host=
proxy.http.host=
proxy.http.port=
proxy.https.host=
proxy.https.port=
proxy.port=
proxy.socks.host=
proxy.socks.port=
proxy.system=true
recent.count=10
run.display=1
run.options=
run.options.bits=32
run.options.memory=false
run.options.memory.initial=64
run.options.memory.maximum=512
run.present.bgcolor=#666666
run.present.stop.color=#cccccc
run.window.bgcolor=#FFFFFF
search.format=https://google.com/search?q=%s
sketch.name.approach=Classic (sketch_220809a)
sketch.name.replace_underscore=true
sketchbook.path=/Users/Donald/Documents/Processing/Sketchbook_v3
sketchbook.path.four=/Users/Donald/Documents/Processing/Sketchbook_v3
sketchbook.path.three=/Users/Donald/Documents/Processing/Sketchbook_v3
temp.days=7
theme=Minerals/kyanite.txt
theme.gradient.method=rgb
toolbar.hide.image=false
update.check=true
update.id=1727102698593054913
update.last=1746025252609
welcome.four.seen=false
welcome.four.show=true
welcome.seen=false
welcome.show=true