I do that to test in the Sub Activity_Create(FirstTime As Boolean)
B4X:
Dim obj As Object
Dim pb As Panel
pb.Initialize("")
Dim ToCall As tToCall
ToCall.Initialize
ToCall.Target = "main"
ToCall.SubName = "test"
pb.Tag = ToCall
ToCall = pb.Tag
result = CallSub(ToCall.Target, ToCall.SubName)
B4X:
Sub test As Int
Return 5
End Sub
and I have an enrror on the last line
the error is
java.lang.NumberFormatException: For input string: "null"