Forum Xamarin.Android

C# Counterpart for JNI signatures

I am using a dynamic JNI lib which searches for methods with following signatures:

I understand that I can make functions available from my Activity using flag [Java.Interop.Export], but I can't find any description for how I would provide a proper type for array exports.


  • Benjamin_PetersBenjamin_Peters USMember
    edited March 2015

    I should add why I am asking this actually: Other functions are exported fine, but these types of functions seem to make trouble. If I export a function such as the first one with
    public static void functionName(short[] buffer)

    I get an unhandled exception even before my activity is being called. For simple datatypes the export works and my application boots just fine.

Sign In or Register to comment.