In my project, I am using volley to download a JSON stream which I parse and show in a listview. I use the following method to load my data:
private void lo
i have some problem with:
Volley.newRequestQueue(getApplicationContext());
it caused the first request at startup to take awfully long time in some phones. i changed it to:
Cache cache = new DiskBasedCache(getCacheDir(), 1024 * 1024);
Network network = new BasicNetwork(new HurlStack());
mRequestQueue = new RequestQueue(cache, network);
mRequestQueue.start();
That solved my issue.