use of com.android.volley.toolbox.DiskBasedCache in project DesignLibrary by StylingAndroid.
the class VolleySingleton method getRequestQueue.
public RequestQueue getRequestQueue() {
if (requestQueue == null) {
Cache cache = new DiskBasedCache(context.getCacheDir(), CACHE_SIZE);
Network network = new BasicNetwork(new HurlStack());
requestQueue = new RequestQueue(cache, network);
requestQueue.start();
}
return requestQueue;
}
Aggregations