Android Question raiseEvent2 causing ArrayIndexOutOfBoundsException

Ddddimmma

Member
Licensed User
Longtime User
Hi,
I am trying to post an event from a native library (java) back to b4a.
I also need the event to be received while the activity is paused, so i tried raiseEvent2.
My usage:
ba.raiseEvent2(sender, true, eventName, false, eventParams);
Doing so, i am getting the following error:
~e:java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1

Could you please assist?
BTW, using raiseEventFromDifferentThread works but it dispatches the event to a message queue and the event would run upon activity resume - not a good solution for us because we need to notify the client activity that the event occurred event if it is paused.
 
Top