Hi all,
I’m trying to understand which permissions I need to read/write a .txt or .csv file. As well as, the permissions needed to load and play a music file. Either on internal and external storage. Any advice/thoughts will be appreciated.
Thanks,
Mark
jafal
August 27, 2023, 10:00pm
2
Hi
OK, I got it working on Android 11. But first of all a huge THANK to @jafal with all the sample codes.
I modified the loadImage() routine for my purpose:
import android.os.Environment;
import java.io.FileInputStream;
import android.Manifest;
import android.content.pm.PackageManager;
import android.app.Activity;
import android.os.Build;
import android.os.Build.VERSION_CODES;
Activity activity;
JSONObject json;
private static String[] PERMISSIONS_STORAGE = { Manifest.permission.READ_EXTER…
READ_EXTERNAL_STORAGE
WRITE_EXTERNAL_STORAGE
To give permission to the APP
In the Processing’s IDE Android mode Menu/Android/Sketch permissions
On the APDE you can do that by choosing: Three dots / Sketch Properties / Sketch Permissions.
@markcosmic
Have a look at this thread too
I’m using Processing 3.5.4. My app has been working fine on Android 12. Now my phone is updated to Android 13 and my app is no longer working, due to permission changes.
My app needs the permission to generate a file in an directory (in external storage) where user can open it with a 3rd party editor and modify it. Then the app reads the updated file.
If I use the Processing “data” directory I don’t have permission issue. But I have no idea where I can open the file to edit.
According to wha…
The whole way external memory accessed started changing with Android 11 … You can’t just ask for permissions now … you have to use the Storage Access Framework.