Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout()
Dim a, b As Int
a = 5
b = 6
Dim jo As JavaObject
jo.InitializeContext
Log("Passo due parametri e ricevo il risultato: " & jo.RunMethod("Moltiplica", Array( a, b)))
End Sub
#If Java
public int Moltiplica(int a, int b) {
int c = a * b;
return c;
}
#End If