Bug 20884 - GridViewActivity in ActionBarPullToRefresh does not bind correctly
Summary: GridViewActivity in ActionBarPullToRefresh does not bind correctly
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Bindings ()
Version: 4.12.4
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Atsushi Eno
URL:
Depends on:
Blocks:
 
Reported: 2014-06-25 11:49 UTC by John Pilczak
Modified: 2014-08-21 00:10 UTC (History)
2 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 FIXED

Description John Pilczak 2014-06-25 11:49:44 UTC
There is a comment in the sample that says that GridViewActivity does not bind correctly in the stable release of Xamarin.Android (4.6.8). What is preventing this from being bound correctly? Is there an issue here we can fix?

While the comment says that it doesn't work in 4.6, it still does not work in 4.12.5.

=== Xamarin Studio ===

Version 5.0.1 (build 3)
Installation UUID: ea2dde6b-0915-4e87-bf59-0163cddeada5
Runtime:
	Mono 3.4.0 ((no/954ed3c)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 304000214

=== Apple Developer Tools ===

Xcode 5.1.1 (5085)
Build 5B1008

=== Xamarin.iOS ===

Version: 7.2.4.4 (Trial Edition)
Hash: 5485ac2
Branch: 
Build date: 2014-06-11 13:44:48-0400

=== Xamarin.Android ===

Version: 4.12.5 (Trial Edition)
Android SDK: /Users/johnpilczak/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		1.6   (API level 4)
		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.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)

=== Xamarin.Mac ===

Xamarin.Mac: 1.8.0.8

=== Build Information ===

Release ID: 500010003
Git revision: f94ee866936d25105704eb63728ad5a981eda0a4
Build date: 2014-06-04 12:19:12-04
Xamarin addins: 1a6044e8321ea07e03a56b5381951686c82fed8b

=== Operating System ===

Mac OS X 10.9.2
Darwin Vinces-xMac.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
Comment 1 Tajinder Singh 2014-07-01 04:13:50 UTC
I have checked this issue and I am also getting the same behavior.

Steps I have followed:

1. Open the "ActionBarPullToRefresh" sample on XS
2. Open the  "MainActivity.cs" file.
3. On the line no 43 there is a comment which says

   // We don't want to display these activities for a couple of different reasons:
  // MainActivity - this is the current activity
 // GridViewActivity - this doesn't seem to bind correctly with the stable release of Xamarin.Android (4.6.8)

Case 1: With the following line on "MainActivity.cs" sample is working fine.

       private string[] _activitiesToExclude = new string[] {
			"actionbarpulltorefreshsample.MainActivity",
			"actionbarpulltorefreshsample.GridViewActivity"
		};

Case2:  With the following line on "MainActivity.cs" sample is working throws an exception when I click on GridView Option.

 private string[] _activitiesToExclude = new string[] {
			"actionbarpulltorefreshsample.MainActivity",
			};

I have just remove the "actionbarpulltorefreshsample.GridViewActivity" item from the array because as per the comment "GridViewActivity - this doesn't seem to bind correctly with the stable release of Xamarin.Android (4.6.8)" and I am working on Xamarin.Android 4.12.4.

When the remove the "actionbarpulltorefreshsample.GridViewActivity" option from "_activitiesToExclude" array application is still working but and now there is one more option available on UI i.e. "GridView" and when I click on that option I am getting an exception. 

Screencast: http://www.screencast.com/t/nlSeDB5wapw

Application output: https://gist.github.com/saurabh360/5aa133b084e756974926
Emulator log: https://gist.github.com/saurabh360/838dd7f6a663da6fb92a

Environment Info:

Mac OS X 10.9.3
Xamarin Studio: 5.0.1 (build 3)
Xamarin.Android: 4.12.4 (Enterprise Edition)

Build Information 
Release ID: 500010003
Git revision: f94ee866936d25105704eb63728ad5a981eda0a4
Build date: 2014-06-04 12:19:12-04
Xamarin addins: 1a6044e8321ea07e03a56b5381951686c82fed8b
Comment 2 Atsushi Eno 2014-08-21 00:10:33 UTC
samples bug. Fixed in master. [7e6215b]