Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How to bind Java libraries which include JNI ?

$
0
0

Hello.

I am a reporter of this suggestion https://xamarin.uservoice.com/forums/145075-xamarin-component-ideas/suggestions/4473274-porting-major-gis-libraries-proj-4-geos-gdal-og and my acquaintance made a comment on it, so I found spatialite library for Android with Java and JNI. https://github.com/aamenos/spatialite-android

I don't have a enough skill to make it to Xamarin component, but I try to make a c# binding of it for my own purpose and studying.

I am a expert of iOS, so my Android skill is very poor, so I want to ask some questions.

1:

If I compile spatialite-android project, many objects are generated. But, I think, only * spatialite-android-library/bin/spatialite-android-library.jar * spatialite-android-library/libs/armeabi/libjsqlite.so * spatialite-android-library/libs/armeabi-v7a/libjsqlite.so * spatialite-android-library/libs/x86/libjsqlite.so 4 files are enough to make binding library.

Is this right?

2:

I know Xamarin's Java wrapper bindings are made from .jar file, but this case, we need not only *.jar but also each architecture's *.so file. How should I put them in binding project? Only put them under libs/ARCH/.so of Xamarin folder works well? *.so resource is also included in .NET dll after compiling?

Thanks.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>