I would like to save photos on the external app directory on the sd card on Android 11. What is the proper way to do this? Am I constrained to use SAF API with system picker triggered by action ACTION_OPEN_DOCUMENT_TREE where user have to select a folder on sd card?
Or maybe I can use this method:
File[] externalStorageVolumes =ContextCompat.getExternalFilesDirs(mContext, null);
and assume that if the sd card is available it will be on externalStorageVolumes[1]?
This worked on my 2 devices (Samsung j1 with android 5, and Samsung s10 with Android 10), but I don't have the opportunity to access more devices to test it.