I need to populate a ListView
in a Homescreen Widget
. I know I use RemoteViewsService.RemoteViewsFactory
as a sort of Adapter
.
I also know how to populate the rows in getViewAt()
method to show this.
However, I need to populate an ArrayList
of Objects from the Network and pass that into the getViewAt()
I am not sure where or how to go about doing this?
In a normal adapter, I simply pass this in the constructor. Would it be the same here?