Bug 19633 - Getting error for android sample "JNI Demo"
Summary: Getting error for android sample "JNI Demo"
Alias: None
Product: Android
Classification: Xamarin
Component: Samples ()
Version: 0.0 (Samples)
Hardware: PC Mac OS
: High normal
Target Milestone: ---
Assignee: Christopher Blackman
Depends on:
Reported: 2014-05-09 03:10 UTC by Nischal
Modified: 2014-07-15 10:35 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Comment 1 Peter Collins 2014-05-14 16:46:34 UTC
The issue here is that the maps API (v1) being used by JniDemo is obsolete. We should rewrite this sample to provide a simple demonstration of the AndroidJavaSource build action. We have plenty of other maps samples and the README even suggests to use something else if the user is looking for a Maps example:
"Note this binds to the Google Maps library as a sample, but Mono for Android provides bindings to the Google Maps library for you. If you just want to use Maps, see the MapsDemo sample instead."
Comment 2 Christopher Blackman 2014-06-30 17:55:50 UTC
I've followed Peter's idea and removed the Google Maps Activity from the sample and replaced it with a simple "hello world" style Activity, to demonstrate the JNI capabilities. There shouldn't be any errors with it now.
Comment 3 Sadik Ali 2014-07-15 10:35:21 UTC
We have checked this issue, now the new/updated sample is working fine. We are able to run this application successfully, without any error.

To checked this issue we have downloaded monodroid sample from github (Git version : 1ad1a31f8564833ac4b19aa113af8d0cd7f2388d) and run this.

Screencast : http://screencast.com/t/i0CuR0ufxNqM

Environment Info : 

=== Xamarin Studio ===

Version 5.1.2 (build 0)
Installation UUID: 011d70a5-dede-428b-ab04-ef451c2e539d
	Mono 3.4.0 ((no/954ed3c)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 304000214

=== Xamarin.Android ===

Version: 4.12.5 (Enterprise Edition)
Android SDK: /Users/MM/Desktop/android-sdk-macosx
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		3.2   (API level 13)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

=== Apple Developer Tools ===

Xcode 5.1 (5084)
Build 5B130a

=== Xamarin.iOS ===

Version: (Enterprise Edition)
Hash: 87026b6
Build date: 2014-07-02 19:39:08-0400

=== Xamarin.Mac ===


=== Build Information ===

Release ID: 501020000
Git revision: 4574b1e5cf09f2e95e486c259bd9267a68c77cb3
Build date: 2014-07-02 20:50:40-04
Xamarin addins: fdea6fe3e36cda39291b39c81133e409c6d6f092

=== Operating System ===

Mac OS X 10.9.2
Darwin MacMini.local 13.1.0 Darwin Kernel Version 13.1.0
    Thu Jan 16 19:40:37 PST 2014
    root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64