I'm trying to use a *.so library inside a Xamarin Android project, just as used in Java project. I tried putting the library in the path: lib/armeabi/library.so and in the properties of the file:
- Build action: AndroidNativeLibrary
- Copy to output: Always
Also, i tried the following code to import a method, as described in:
https://stackoverflow.com/a/15902529/5610132
Code:
[DllImport("libVPOS3515.so")]
public extern static int Lib_McrRead(byte keyNo, byte mode, byte []track1, byte []track2, byte []track3);
But, how can I use the classes included in the library?