Bug 14592 - XA does not set the RemoteAdpter for ListView on AppWidget
Summary: XA does not set the RemoteAdpter for ListView on AppWidget
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 4.8.x
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2013-09-10 06:42 UTC by Prashant Cholachagudda
Modified: 2017-06-27 15:50 UTC (History)
3 users (show)

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


Attachments
Debug log (540.61 KB, text/plain)
2013-09-10 06:42 UTC, Prashant Cholachagudda
Details


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 Prashant Cholachagudda 2013-09-10 06:42:42 UTC
Created attachment 4820 [details]
Debug log

The AppWidgetProvider does not set the Remote adapter to display items on the Remote view.

It is expected to show list of items on the RemoteView once we set the RemoteAdapter, but the widget shows a blank ListView, and we do not get enough information the in the log file.

Test Case:
https://www.dropbox.com/s/3gd2x551sd3jxzx/ListWidget.zip
https://www.dropbox.com/s/zkeg1z5avaa83zy/SimpleWidget%202.zip
Comment 1 Amar Gaikwad 2013-09-17 11:27:27 UTC
Do we have any ETA for this case?
Comment 2 Jonathan Pryor 2013-09-18 16:33:45 UTC
There are two issues here:

Firsty, the test case is inadequate, as no repro instructions are provided. Source is nice, but if the repro instructions involve more than "run the app" I need to know what the repro steps are.

In this case, there are two projects as part of the test case. "Just run the app" is not in the cards.

Secondly, the source code contains two bug which will elicit warnings in the forthcoming 4.8.3 release:

> warning : Type 'Events.App.AIRAndroid.Widget.AIREventsRemoteViewsFactory' implements Android.Runtime.IJavaObject but does not inherit from Java.Lang.Object. It is not supported.
> warning : Type 'ListWidget.LoremViewsFactory' implements Android.Runtime.IJavaObject but does not inherit from Java.Lang.Object. It is not supported.

As the warning stipulates, implementing IJavaObject without inheriting from Java.Lang.Object is not supported. (IJavaObject.Handle is used to obtain the Java instance to pass to Java calls. With your implementation, `null` would be passed to those Java calls, which would certainly explain why nothing appears to be happening...).

See also: http://androidapi.xamarin.com/?link=T%3aAndroid.Runtime.IJavaObject
Comment 3 Chris Hardy [MSFT] 2017-06-27 15:50:20 UTC
Unfortunately, we’re unable to reproduce this report. If this issue is still occurring for you, please reopen this issue and attach a reproduction to the bug by starting with a clean Xamarin.Android project adding just the code necessary to demonstrate the issue.