1
I’m developing an application where I have to make several Volley requests in parallel to fill out spinners, and there are two times I call this screen.
The first time is for a new registration, where all the features are in accordance with what I would like.
The second time is to edit the registration, where they should load the data of the spinneres and then fill in the value already pre-registered previously by the user. However, when trying to search the data and set in the spinner, the data have not yet been brought from the service.
I would like to know what is the best solution to accomplish this task... Vi some people talking about Asynctask, this would be the best option?
Put the code you’re using.
– ramaral
You want to solve the issue of not filling the spinner or you want a tip on how and what to use for web service consumption?
– viana
Both I’ve managed to accomplish... just wanted a hint on how to make several requests in parallel and qnd all are OK, I call the edit
– Felipe A.
I personally like the
EventBus
https://github.com/greenrobot/EventBus– hugofsousa