P Pendrush Well-Known Member Licensed User Longtime User Aug 20, 2020 #1 In B4a i need to raise event like: B4X: Msg_onMessage(Success As String, example1 As String, example2 As String) What is example Java code to raise event like this? Java: ba.raiseEventFromDifferentThread(getObject(), null, 0, eventName + "_onmessage", false, new Object[]{String.valueOf(...)}); ??? EDIT: I have found solution here Java: ba.raiseEventFromDifferentThread(getObject(), null, 0, eventName + "_onmessage", false, new Object[]{String.valueOf(str1), String.valueOf(str2), String.valueOf(str3)}); Last edited: Aug 20, 2020
In B4a i need to raise event like: B4X: Msg_onMessage(Success As String, example1 As String, example2 As String) What is example Java code to raise event like this? Java: ba.raiseEventFromDifferentThread(getObject(), null, 0, eventName + "_onmessage", false, new Object[]{String.valueOf(...)}); ??? EDIT: I have found solution here Java: ba.raiseEventFromDifferentThread(getObject(), null, 0, eventName + "_onmessage", false, new Object[]{String.valueOf(str1), String.valueOf(str2), String.valueOf(str3)});
DonManfred Expert Licensed User Longtime User Aug 20, 2020 #2 B4X: ba.raiseEventFromDifferentThread(this, null, 0, eventName + "_onmessage", true, new Object[] {str1, str2, str3});
B4X: ba.raiseEventFromDifferentThread(this, null, 0, eventName + "_onmessage", true, new Object[] {str1, str2, str3});
P Pendrush Well-Known Member Licensed User Longtime User Aug 20, 2020 #3 I have my focus on Kotlin JS/JVM/Android (I'm starting to be pretty good), still learning Java syntax.
I have my focus on Kotlin JS/JVM/Android (I'm starting to be pretty good), still learning Java syntax.