Hi All,
I would need write to SD card on a phone running android 7.0.
I tried the unmodified Externalstorage class example. After installing the program and selecting one of the directory of the connected pendrive, the program crash with this error message:
java.lang.ClassNotFoundException: android.support$v4$provider$DocumentFile, here:
This happen after I run the SDK manager and refreshed all suggested item, because before it I couldn't compile the example.
What do I wrong?
I would need write to SD card on a phone running android 7.0.
I tried the unmodified Externalstorage class example. After installing the program and selecting one of the directory of the connected pendrive, the program crash with this error message:
java.lang.ClassNotFoundException: android.support$v4$provider$DocumentFile, here:
B4X:
Private Sub GetPickedDir (uri As String) As JavaObject
Dim DocumentFileStatic As JavaObject
Dim treeUri As Uri
treeUri.Parse(uri)
Dim PickedDir As JavaObject = DocumentFileStatic.InitializeStatic("android.support.v4.provider.DocumentFile").RunMethod("fromTreeUri", Array(ctxt, treeUri))
Return PickedDir
End Sub
What do I wrong?