Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
Created attachment 4820 [details]
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.
Do we have any ETA for this case?
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
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.