Android Volley Multiples Parallel Requisitions [closed]

1

I'm developing an application where I have to make multiple volley requests in parallel to populate spinners, and there are two moments when I call this screen.

The first time is for a new registration, where all the features are in agreement with what I would like.

The second time is to edit the register, where they should load the data of the spinneres and then fill with the value already pre-registered previously by the user. However, while trying to fetch the data and stay in the spinner, the data has not yet been fetched.

I would like to know the best solution to accomplish this task ... I saw some people talking about AsyncTask, would this be the best option?

    
asked by anonymous 27.12.2016 / 14:14

1 answer

0

There are several ways to make requests to a Web Services, through code that might be too long or through some APIs. On the other hand, it may be a little personal to choose a good tool to make requests, ease of use, practicality and documentation issues. A factor that should consider a lot is the performance of your application, as the end user will have greater satisfaction for the fluidity of your application.

If you're using JSON, there are some frameworks that can help you a lot. See the examples below:

A gringo site did some experiments using these same frameworks , with a very basic application. The results are quite considerable because it shows the efficiency of each one.

See below:

Tolearnmoreaboutthetests,readthearticle Android Async HTTP Clients: Volley vs Retrofit (en)

I find it interesting to read each one's documentation and do an analysis according to your development criteria, and of course, thinking about the end user and goals of your project. After that, " taca le pau in those little fingers ", #partiuprogramar #developepment # transformandocaféemcodigos .     

27.12.2016 / 19:15