I am new to developing apps for android phones using processing and am testing the ability to write to, read from external storage like the sd card and came across this post. However the above code with requestPermission(…) method does not seem to work with android phones with versions above android pie (SDK 28), so does not work with SDK 29,30 for example. I get the error:
AndroidDevice: cannot find process id, console output will be disabled.
"Read SDcard is not available"
"Write SDcard is not available"
I tried setting android:targetSdkVersion=“28”/> in the andriodManifest.xml file but this had no effect.
I also looked on the android .developer website which seems to indicate that the permissions setting methods for post SDK28 seems to have changed but this just confused me. Is there an updated method for setting permissions to access directories/files etc on external storage using processing?
Is there a tutorial related to this?
Any help is much appreciated.