There is a list of countries, it is static (Russia, China, USA, etc.), each country has a list of cities. I use ExpandableListView with a custom Adapter: The list of countries is assigned as a Group , and the list of cities must be loaded from the server dynamically and crammed into Child
Question. How from Adapter to make request for the server and to use in expandableListView ?
Ps Without Expandable - not an option. For requests I use Retrofit.
AsyncTaskandAsyncTaskto the server. Then inpublishProgresspush it to the list - HerrgottgetChild. But in the time when AsyncTask has completed, the method will already return null. - Alexeynull? Why will return? - Herrgott