Bug 36791 - Android.Provider.BaseColumns interface
Summary: Android.Provider.BaseColumns interface
Alias: None
Product: Android
Classification: Xamarin
Component: Bindings ()
Version: unspecified
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Atsushi Eno
Depends on:
Reported: 2015-12-09 20:04 UTC by mwill
Modified: 2016-09-28 09:04 UTC (History)
5 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 for Bug 36791 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description mwill 2015-12-09 20:04:34 UTC
I am trying to bind to a java class that inherits from the BaseColumn interface in Android and when I try to build, it gives me a build error that my class cannot have multiple base classes. Java.Lang.Object and Android.Provider.BaseColumns.  When I look at the Android documentation, this is clearly defined as an interface:


but in Xamarin, it is defined as a public abstract class.
Comment 1 Atsushi Eno 2015-12-09 20:23:34 UTC
CC-ing Dean.

That is... an interesting overlook. 

Quick explanation on the situation: Android.Provider.BaseColumn is not to represent that Java interface. It is there rather to define constants in that Java interface (because C# cannot define constants, we split out those constants into a class).
So there should be "IBaseColumn" interface. But since there is no member, our generator seems to think that it does not have to generate it.

We should fix this.
Comment 2 Abhishek 2016-01-13 13:27:48 UTC
I have tried this issue and able to reproduce this issue at my end.

I am getting the same behavior describe in bug description.

Screencast: http://www.screencast.com/t/NC0oSRCU
Ide Log: https://gist.github.com/Abhishekk360/00a2c855a3ca00dc8236

Environment Info:

=== Xamarin Studio ===

Version 5.10.2 (build 50)
Installation UUID: 93e693b0-b53d-40f4-b29c-b61ff5cbe892
	Mono 4.2.2 (explicit/d5c4649)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 402020023

=== Xamarin.Profiler ===

Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Xamarin.Android ===

Version: (Enterprise Edition)
Android SDK: /Users/xamarin23/Desktop/android-sdk-macosx
	Supported Android versions:
		2.3    (API level 10)
		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)
		4.4.87 (API level 20)
		5.0    (API level 21)
		5.1    (API level 22)
		6.0    (API level 23)

SDK Tools Version: 24.4.1
SDK Platform Tools Version: 23.1
SDK Build Tools Version: 23.0.2

Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Xamarin Android Player ===

Version: 0.6.1
Location: /Applications/Xamarin Android Player.app

=== Apple Developer Tools ===

Xcode 7.1 (9079)
Build 7B91b

=== Xamarin.Mac ===

Version: (Enterprise Edition)

=== Xamarin.iOS ===

Version: (Enterprise Edition)
Hash: 122b860
Branch: master
Build date: 2016-01-05 20:20:30-0500

=== Build Information ===

Release ID: 510020050
Git revision: 63da12d16f2ab00849bd9dd59d08ba7f5f05d578
Build date: 2016-01-11 19:27:34-05
Xamarin addins: 55f2d3596d8c1229f68d10e2b94332ca67222b48
Build lane: monodevelop-lion-cycle6-c6sr1

=== Operating System ===

Mac OS X 10.10.5
Darwin 800BC.local 14.5.0 Darwin Kernel Version 14.5.0
    Wed Jul 29 02:26:53 PDT 2015
    root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64
Comment 3 YFerrando 2016-09-28 09:04:36 UTC
Same problem, anyone have a workaround? This will be fixed soon?