// Instantiate the cache
Cache cache = new DiskBasedCache(mContext.getCacheDir(), 1024 * 1024); // 1MB cap
// Set up the network to use HttpURLConnection as the HTTP client.
BasicNetwork network = new BasicNetwork(new HurlStack());
mRequestQueue = new RequestQueue(cache, network, 29);
//The Integer 29 indicate the number of requests,
//hence, the number of concurrent threads volley will run on its Looper and
//Handler.
// Start the queue
mRequestQueue.start();
//Make request here
# 1 楼答案
以下是我迄今为止所做的工作。要发送每个ID的多个网络请求,需要一个新的RequestQueue构造函数(用于volley)。 `RequestQueue mrrequestqueue=Volley。newRequestQueue(mContext)
我希望这对任何人都有帮助
# 2 楼答案
是的,您可以,如果响应包含ID,则只需要一个请求,然后您可以在JSON解析期间获取列表ID