Is there a function that allows you to find the DCIM folder intended to contain the photos (in the Camera subfolder)?
Whether this is in the main memory or in the removable external memory.
On all occasions !
The function below produces unreliable results:
Don Manfred's Storage 1.0 Library also fails in some cases.
Whether this is in the main memory or in the removable external memory.
On all occasions !
The function below produces unreliable results:
B4X:
Sub GetExternalStoragePublicDirectory (name As String) As String
Dim jo As JavaObject
jo.InitializeStatic("android.os.Environment")
Dim path As Object = jo.RunMethod("getExternalStoragePublicDirectory", Array(name))
If path = Null Or File.Exists(path, "") = False Then
Log("No such folder.")
Return ""
End If
Return path
End Sub
Don Manfred's Storage 1.0 Library also fails in some cases.