hears Active Member Licensed User Longtime User Aug 22, 2021 #1 i need send 2 java object to b4a in 1 times ,BA.raiseevent only can send 1 java params . java object is "ByteBuffe and BufferInfo",how to send together by BA.raiseevent ? when i use BufferInfo as object in b4a always get erro: java.lang.ClassCastException: java.lang.Object cannot be cast to android.media.MediaCodec$BufferInfo how to do ? Last edited: Aug 22, 2021
i need send 2 java object to b4a in 1 times ,BA.raiseevent only can send 1 java params . java object is "ByteBuffe and BufferInfo",how to send together by BA.raiseevent ? when i use BufferInfo as object in b4a always get erro: java.lang.ClassCastException: java.lang.Object cannot be cast to android.media.MediaCodec$BufferInfo how to do ?
Erel B4X founder Staff member Licensed User Longtime User Aug 22, 2021 #2 ba.raiseEvent can pass as many parameters as you like.
agraham Expert Licensed User Longtime User Aug 22, 2021 #3 hears said: BA.raiseevent only can send 1 java params Click to expand... That parameter is an array of Objects, I guess you missed that.
hears said: BA.raiseevent only can send 1 java params Click to expand... That parameter is an array of Objects, I guess you missed that.
hears Active Member Licensed User Longtime User Aug 22, 2021 #4 thank you all, i have test ,raiseevent can send many object,just add object to the end. bb1,bb2,bb3 is my objects this.ba.raiseEvent(null, String.valueOf(Activity.eventName) + "_buffer", bb1,bb2,bb3,bb4....);
thank you all, i have test ,raiseevent can send many object,just add object to the end. bb1,bb2,bb3 is my objects this.ba.raiseEvent(null, String.valueOf(Activity.eventName) + "_buffer", bb1,bb2,bb3,bb4....);