I want to know how to get the return value from a function called B4X from inline JAVA.
B4X:
Private Sub Button1_Click
Me.As(JavaObject).RunMethod("sum", Array(1,2))
End Sub
Sub getsum(a As Int,b As Int) As String
Return a+b
End Sub
#if java
public void sum(Int a,Int b){
getBA().raiseEventFromUI(this, "getsum",a,b);
BA.Log(???); //How to get the return value=3
}
#End If