I have code in C# core to provision, register IoT devices to IoT hub Azure using Azure C# sdk
I would like to use that to work in Android Device.
Is there any way I can build executable and libraries compatible to Android using Xamarin
Try to incorporate Java libraries into your Xamarin.Android application by creating a Bindings Library.
Xamarin.Android offers two ways to use these third-party libraries:
Create a Bindings Library that automatically wraps the library with C# wrappers so you can invoke Java code via C# calls.
Use the Java Native Interface (JNI) to invoke calls in Java library code directly. JNI is a programming framework that enables Java code to call and be called by native applications or libraries.
Check the tutorial:
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies