So I followed the post and found the code
Sub Activity_Create(FirstTime As Boolean)
Dim paths() As Object = GetContext.RunMethod("getExternalFilesDirs", Array(Null))
For Each p As Object In paths
Log(p)
Next
End Sub
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
but it doesn't compile with
got error when running the code at post #9. What's wrong?
Parsing code. 0.00
Compiling code. Error
Error compiling program.
Error description: 'as' expected.
Occurred on line: 28
Dim paths() As Object = GetContext.RunMethod("getExternalFilesDirs", Array(Null))
Word: (
so I founnd a correction mentioned
Change Array to Array As Object
but I can't make any variation on the syntax compile
Dim paths() As Object = GetContext.RunMethod("getExternalFilesDirs", Array(Null) as object)
Dim paths() As Object = GetContext.RunMethod("getExternalFilesDirs", Array as object)
can someone point out my error please ?
thanks