Bug 4705 - NotificationCompat.Builder missing?
Summary: NotificationCompat.Builder missing?
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries ()
Version: 4.1.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Atsushi Eno
URL:
Depends on:
Blocks:
 
Reported: 2012-04-27 18:19 UTC by Tom Opgenorth
Modified: 2012-05-11 04:33 UTC (History)
4 users (show)

Tags:
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:
Status:
RESOLVED NOT_REPRODUCIBLE

Description Tom Opgenorth 2012-04-27 18:19:06 UTC
Looking for the Android.Support.V4.App.NotificationCompat.Builder class. It seems to be missing from Mono for Android. Here is the Java documentation for it: http://developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder.html

To duplicate, create a new project, add in the android-support-v4.jar and a reference Mono.Android.Support.v4.dll.  I would expect the class to be found in Android.Support.V4.App namespace.
Comment 1 Atsushi Eno 2012-05-08 02:04:27 UTC
Apart from whether it is good or bad, we never provided bindings for static classes such as android.app.Build.VERSION or android.view.View.MeasureSpec. NotificationCompat.Builder is another example for this.

IMO this should be considered as post-4.2 issue.
Comment 2 Tom Opgenorth 2012-05-08 09:27:25 UTC
That answer works for me.  :)

Going to mark this as resolved.
Comment 3 Atsushi Eno 2012-05-08 09:41:25 UTC
Well, let's not close this but keep it open so that we don't forget about this.
Comment 4 Atsushi Eno 2012-05-11 04:33:35 UTC
Actually this rather looks like MonoDevelop assembly browser issue (unless you confirmed this issue on Windows with .NET tools and those tools also have a bug). I cannot see this NotificationCompat.Builder class on the assembly browser, but it actually exists:

atsushi@atsushi-Aspire-3820:~/svn/monodroid$ cat test.cs
class Test
{
	public static void Main ()
	{
		new Android.Support.V4.App.NotificationCompat.Builder (null);
	}
}

atsushi@atsushi-Aspire-3820:~/svn/monodroid$ mcs test.cs -r:out/lib/mandroid/platforms/android-15/Mono.Android.Support.v4.dll -r:out/lib/mandroid/platforms/android-15/Mono.Android.dll
atsushi@atsushi-Aspire-3820:~/svn/monodroid$