Hi,
I tested it, with an arrayList of strings instead of a custom class, with these results:
The inline java part
public void test(){
ArrayList<String> clients = new ArrayList<String>(3);
clients.add("ONE");
clients.add("TWO");
clients.add("THREE");
//ba.raiseEvent2(ba, false, "prova_result", true, new Object{clients});
processBA.raiseEvent(null, "prova_result", new Object[]{clients});
}
B4A part
Sub prova_result(clients As Object)
Log("Result is:"&clients)
End Sub
The Logs are [ONE,TWO,THREE] as expected.
I suppose that if you have a custom type ArrayList, its fields can only be accessed by "GetField" instance.
Test with this simple case to see if the difference is the "simple type" vs the "custom class type" of the ArrayList or there is something else