Volleyball: add a set of queries to the queue
source link: https://www.codesd.com/item/volleyball-add-a-set-of-queries-to-the-queue.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Volleyball: add a set of queries to the queue
I'm putting the volley requests to an array and then i' using for
statement for adding request to volley queue like this (pseudo code) :
ArrayList<Requst> array = new ArrayList<Requst>()
volleyRequest req = //some code
volleyRequest req2 = //some code
array.add(req)
array.add(req2)
And on another class i'm using :
for(Requst r : array )
{
volley.newRequestQueue.add(req, tag);
}
But this loop did not continue until first request does not finished! What should i do?
Is there any way for adding array of requests to volley without loop?
Use the singleton pattern to add multiple request in volley library as specified in the link
Related Articles
Android CardsLib, how to add and set custom values in the list item?
How do I add a set of information (in the user-defined data type) to a matrix in java
How can I automatically determine the array (schema from a set of queries?
The DB indices to use for a multiple combination of queries from the same set of columns?
how to add a new set of values with the property when the json object already exists ... using javascript
How to display database queries in the table using Java Servlets and Jsp?
Using the set of records in the "IN" operator in Oracle
SQL | Add a specific amount and exit the sum in a separate column
SQL statement for multiple queries on the same table
Merge queries from the same table N times
Optimization of queries in the database in the DGEgo REST framework
How to run two queries at the same time in VB? (MySQL)
Orchard - adds a class or id to the body using fields
How do I add a category to Magento via the installation script?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK