

Xamarin.Android implements bindings by using Managed Callable Wrappers ( MCW). This guide explains the first option: how to create a Bindings Library that wraps one or more existing Java libraries into an assembly that you can link to in your application. JNI is a programming framework that enables Java code to call and be called by native applications or libraries. Use the Java Native Interface ( JNI) to invoke calls in Java library code directly.

Xamarin.Android offers two ways to use these libraries:Ĭreate a Bindings Library that automatically wraps the library with C# wrappers so you can invoke Java code via C# calls. Because of this, it frequently makes sense to use an existing Android library than to create a new one. The third-party library ecosystem for Android is massive. The Android community has many Java libraries that you may want to use in your app this guide explains how to incorporate Java libraries into your Xamarin.Android application by creating a Bindings Library.
