We have been trying to put the basic .net sample on the Leica Zeno 20 UMTS having android Android 4.2.2.
Trying to open a simple "Display Map" page....gives this error.
System.NotSupportedException: Could not activate JNI Handle 0x2b00025 (key_handle 0x4113f7e8) of Java type 'md525ae7a30145b6936c079fc7426298397/DisplayMap' as managed type 'ArcGISRuntimeXamarin.Samples.DisplayMap.DisplayMap'.
We have even tried on the emulator with android 4.2.2.
Any help would be appreciated!
Solved! Go to Solution.
OK I tracked down the bug, and will manifests itself on devices at API Level 16 and Level 17 (ie v4.2 and down).
Luckily I have a workaround for you. In the Application constructor add the following line:
Let me know if that works for you or not.
Btw, I just want to point you to the deprecation notice in the v100.2.1 release notes: https://developers.arcgis.com/net/latest/wpf/guide/release-notes.htm
Specifically this part: "Xamarin.Android development for API levels 15 (Android 4.0.3-4.0.4), 16 (Android 4.1-4.1.1), 17 (Android 4.2 - 4.2.2), and 18 (Android 4.3). With the 100.3 release, the minimum will be API level 19 (Android 4.4)."
I've logged the bug, but since we're dropping support for the levels that the issue will manifests itself on, we'll probably not add the fix to the SDK.