I am trying to call a Java method that has multiple signatures:
int read()
int read(byte[ ])
int read(byte[ ], int, int)
etc.
The problem is, that when I send a Java byte[ ] (created with AndroidJNI.NewByteArray) as the first param to someObject.Call( “read”, theJavaByteArray ) it finds the first method signature. If I send a Mono byte array as the first parameter it actually finds the send signature but nothing gets copied to the byte array. I am guessing this is due to JNI helper not finding the method due to the param being an IntPtr and not an actual Java byte array. Is there any way to force the use of the second method signature?