Bug 41929 - DatePicker DateChange event doesn't fire on Android 5.1 or higher
Summary: DatePicker DateChange event doesn't fire on Android 5.1 or higher
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 6.1.0 (C7)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
Depends on:
Reported: 2016-06-17 13:44 UTC by Ryan Alford
Modified: 2017-06-23 19:36 UTC (History)
3 users (show)

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

DatePicker test project (30.25 KB, application/zip)
2016-06-17 13:44 UTC, Ryan Alford

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:

Description Ryan Alford 2016-06-17 13:44:56 UTC
Created attachment 16382 [details]
DatePicker test project

I am currently using a DatePicker in a project and ran across an issue that is causing my customers headaches.

On Android 5.1 and higher, the DateChange event does not fire. I also tried setting the OnDateChangeListener, and it also doesn't fire.

Both of these work fine on Android 5.0 or lower.

I have attached a sample project to illustrate the issue. I also have screen recordings of emulators showing the issue. In the videos, the Genymotion emulator on the left is Android 4.4.4, and the right emulator is Android 6.0.

Since the videos are larger than allowed as attachments, I am sharing them on DropBox.

DatePicker_Event - https://www.dropbox.com/s/dsskon5irobjjml/DatePicker_Event.mov?dl=0
DatePicker_Listener - https://www.dropbox.com/s/bk5g76b5pfx1rxb/DatePicker_Listener.mov?dl=0

======== Xamarin information ========

=== Xamarin Studio Enterprise ===

Version 6.0 (build 5174)
Installation UUID: f79f018c-2fe8-422f-88c9-47931b42d14e
	Mono 4.4.0 (mono-4.4.0-branch-c7-baseline/5995f74) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 404000182

=== Xamarin.Profiler ===

Not Installed

=== Xamarin.Android ===

Version: (Xamarin Enterprise)
Android SDK: /Users/jra2249/Sandbox/AndroidSDK/android-sdk-macosx
	Supported Android versions:
		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)
		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.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

Android Designer EPL code available here:

=== Xamarin Android Player ===

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

=== Apple Developer Tools ===

Xcode 7.3 (10183.3)
Build 7D175

=== Xamarin.Mac ===

Not Installed

=== Xamarin.iOS ===

Version: (Xamarin Enterprise)
Hash: 39ebb77
Branch: cycle7
Build date: 2016-06-01 21:23:15-0400

=== Build Information ===

Release ID: 600005174
Git revision: 694a75f040b7f2309bc43d4f78a3a6572ca898bf
Build date: 2016-06-01 17:28:08-04
Xamarin addins: 33f406fa2dcf214012c78cb846585f062b2e1d24
Build lane: monodevelop-lion-cycle7-baseline

=== Operating System ===

Mac OS X 10.11.4
Darwin frssmac02 15.4.0 Darwin Kernel Version 15.4.0
    Fri Feb 26 22:08:05 PST 2016
    root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64
Comment 1 Cody Beyer (MSFT) 2016-06-20 17:28:24 UTC
Here is a Java sample, also demonstrating the reported issue: https://www.dropbox.com/s/0fi7ikxekjs9ynb/DateChangeTest.zip?dl=0
Comment 2 Ryan Alford 2016-06-22 12:42:19 UTC
Thanks Cody. I used your java example and created an issue with Google.


Let's hope it gets fixed sometime.
Comment 3 John Miller [MSFT] 2017-06-23 19:36:54 UTC
It looks like this bug is an issue in the native platform so I will resolve it as UPSTREAM. If you notice something different, please comment and reopen. Thanks!