【发布时间】:2014-12-23 09:33:12
【问题描述】:
我正在查看一些 AQuery 代码here,发现有一种方法可以修改 AQuery 中的网络连接数。
改造中有没有办法做到这一点,改造的默认值是什么?
/* Settings of Image */
//set the max number of concurrent network connections, default is 4
AjaxCallback.setNetworkLimit(8);
//set the max number of icons (image width <= 50) to be cached in memory, default is 20
BitmapAjaxCallback.setIconCacheLimit(50);
//set the max number of images (image width > 50) to be cached in memory, default is 20
BitmapAjaxCallback.setCacheLimit(50);
aq = new AQuery(context);
【问题讨论】:
标签: retrofit android-networking androidhttpclient aquery