Where can I get external data from RemoteViewsService.RemoteViewsFactory

I need to populate a ListView on a Homescreen Widget . I know that I am using RemoteViewsService.RemoteViewsFactory as a kind of Adapter .

I also know how to populate rows in getViewAt() to show this.

However, I need to fill out an ArrayList objects from the Web and pass this to getViewAt() , I'm not sure where and how to do it?

In a regular adapter, I just pass this in the constructor. Will it be the same here?

+4
source share

Source: https://habr.com/ru/post/1478856/


All Articles