' Hello all!
' When you run applications compiled with the following error:
' An error has occurred in sub:
' java.lang.RuntimeException:
' Method: FirstMethod not found
' in: b4a.example.main
' I wonder what's wrong?
' Please, any help because you correct the error.
' I'm using version JavaObject - 2.01
' thank you In advance!
Sub Globals
Dim NativeMe As JavaObject
End Sub
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
NativeMe.InitializeContext
End If
Dim s As String = NativeMe.RunMethod("FirstMethod", Null)
Log(s) 'will print Hello World!
End Sub
#If JAVA
public String FirstMethod() {
return "Hello World!";
}
#End If
' When you run applications compiled with the following error:
' An error has occurred in sub:
' java.lang.RuntimeException:
' Method: FirstMethod not found
' in: b4a.example.main
' I wonder what's wrong?
' Please, any help because you correct the error.
' I'm using version JavaObject - 2.01
' thank you In advance!
Sub Globals
Dim NativeMe As JavaObject
End Sub
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
NativeMe.InitializeContext
End If
Dim s As String = NativeMe.RunMethod("FirstMethod", Null)
Log(s) 'will print Hello World!
End Sub
#If JAVA
public String FirstMethod() {
return "Hello World!";
}
#End If
Last edited: