Ok .
Added to the manifest:
AddPermission(android.permission.WRITE_MEDIA_STORAGE)
AddPermission(android.permission.WRITE_EXTERNAL_STORAGE)
Added:
Sub GetContext As JavaObject
Return GetBA.GetField("context")
End Sub
Sub GetBA As JavaObject
Dim jo As JavaObject
Dim cls As String = Me
cls = cls.SubString("class ".Length)
jo.InitializeStatic(cls)
Return jo.GetFieldJO("processBA")
End Sub
and
Dim paths() As Object = GetContext.RunMethod("getExternalFilesDirs", Array(Null))
For Each p As Object In paths
Log(p)
Next
Like the post said the first path=File.DirDefaultExternal , which does not help because it's not pointing to the sdcard
The second path looked promising = /storage/extSdCard/Android/data/[app name]/files, tried to create a folder there and it worked
Thanks for the help