Bug 3342 - IRemoteViewsFactory should subclass Adapter and not IJavaObject
Summary: IRemoteViewsFactory should subclass Adapter and not IJavaObject
Status: RESOLVED FEATURE
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries ()
Version: 4.0
Hardware: Macintosh Mac OS
: --- major
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-02-09 21:02 UTC by Chris Hardy [MSFT]
Modified: 2012-02-13 01:50 UTC (History)
3 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 FEATURE

Description Chris Hardy [MSFT] 2012-02-09 21:02:42 UTC
RemoteViewsService.RemoteViewsFactory is a thin wrapper around Adapter yet the RemoteViewsService.IRemoteViewsFactory in Mono for Android is subclassed with IJavaObject.

See documentation: http://developer.android.com/reference/android/widget/RemoteViewsService.RemoteViewsFactory.html

Is there a workaround for this?
Comment 1 Atsushi Eno 2012-02-13 01:50:49 UTC
It should not subclass Adapter. First, this type is an interface (not a class) which inherits IJavaObject. Android Java API doesn't do that either. Second, there is no publicly accessible constructor for Adapter, so you should not be able to inherit from it anyways. I believe that's not how RemoteViewsFactory API is used. I googled it and found one example.
http://developer.android.com/resources/samples/WeatherListWidget/src/com/example/android/weatherlistwidget/WeatherWidgetService.html