Marc (34) [Avatar] Offline
#1
Hi,
Almost like my question about "raw" Xamarin:
Where can I get an example of how to use Android classes (e.g. Signature) when I can not find a Xamarin wrapper?
I understand the concept of JNI, although I have never used it.
Where can I find documentation/guides for this topic, suited for a newbie?
Can the Java code be invoked from both the .Core and .Droid projects?

Thx,
M.

Jim Bennett (86) [Avatar] Offline
#2
You have two choices here - JNI or bind a jar to make it accessible from code. The docs for this are at https://aka.ms/Hnt1wt

This code will need to be called from your Android app, it won't be available in your core project but you can create an interface to this code that you register in the IoC container, and have the interface in your core code, implementation in the Android app.