Hi there...
I am trying to call a sub from inline java... that works if it is in the same b4xpage...
but if for example I want the sub in a different b4xpage ... how I will call it ?
Someone can tell that I can call it with callsub2 but have in mind that already using Inline JAVA from a different b4xpage (already called java using the following):
So is there a command in inline java that will run from a different b4xpage my sub and how i can use them? found ba.raiseEventFromDifferentThread and ba.raiseEventFromUI but how can I use them ???
I am trying to call a sub from inline java... that works if it is in the same b4xpage...
B4X:
#If JAVA
...
public void aaok(byte[] bytes) {
_ccallback(bytes);
}
#END IF
public Sub ccallback(bytes111() As Byte)
Log(bytes111.Length)
end sub
but if for example I want the sub in a different b4xpage ... how I will call it ?
Someone can tell that I can call it with callsub2 but have in mind that already using Inline JAVA from a different b4xpage (already called java using the following):
B4X:
NativeMe=Main.MainForm
NativeMe.InitializeNewInstance("b4j.example.main.myjavaclass", Array(Null))
NativeMe = NativeMe.RunMethod("aaok", Null) 'or with some array - bytes...
So is there a command in inline java that will run from a different b4xpage my sub and how i can use them? found ba.raiseEventFromDifferentThread and ba.raiseEventFromUI but how can I use them ???