@GWAK thanks for replying,
Where should I add this? android:requestLegacyExternalStorage=“true”’
This is the output:
My println output
create dirs
Path: /storage/emulated/0/MYAPP
Error Message
java.io.FileNotFoundException: text.txt: open failed: EROFS (Read-only file system)
at libcore.io.IoBridge.open(IoBridge.java:492)
at java.io.FileOutputStream.<init>(FileOutputStream.java:236)
at java.io.FileOutputStream.<init>(FileOutputStream.java:157)
at com.flologames.savestrings.SaveStringsOnAndroid.saveString(SaveStringsOnAndroid.java:51)
at com.flologames.savestrings.SaveStringsOnAndroid.setup(SaveStringsOnAndroid.java:33)
at processing.core.PApplet.handleDraw(PApplet.java:1878)
at processing.core.PSurfaceNone.callDraw(PSurfaceNone.java:478)
at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:518)
Caused by: android.system.ErrnoException: open failed: EROFS (Read-only file system)
at libcore.io.Linux.open(Native Method)
at libcore.io.ForwardingOs.open(ForwardingOs.java:166)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:254)
at libcore.io.ForwardingOs.open(ForwardingOs.java:166)
at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:8405)
at libcore.io.IoBridge.open(IoBridge.java:478)
... 7 more