Instead of the common Adapter
, for RemoteViews
you need to implement RemoteViewsFactory
. To return custom RemoteView
's (yes, RemoteView
for each item and not View
), you will need to override its getViewAt(int position)
method.
Also, one just does not setAdapter()
for RemoteView
s, you would need to provide a RemoteViewsService
which will return above RemoteViewsFactory
to its clients.
Finally, to the client that is going to show the RemoteView
s, you pass an Intent
of this service.
The Service and its Intent you will need to declare in your manifest file. This will make your App a provider of remote List like views to other apps or any remote process.