"OutOfMemoryError" error using Volley

1

I'm doing an application where I have a URL that returns a JSON, through the Volley library, I'm picking up the contents of that URL and turning it into string , this process runs every 5 seconds, after a certain period my application generated the following error:

  

java.lang.OutOfMemoryError at   com.android.volley.toolbox.DiskBasedCache.streamToBytes (DiskBasedCache.java:322)   at   com.android.volley.toolbox.DiskBasedCache.readString (DiskBasedCache.java:540)   at   com.android.volley.toolbox.DiskBasedCache.readStringStringMap (DiskBasedCache.java:562)   at   com.android.volley.toolbox.DiskBasedCache $ CacheHeader.readHeader (DiskBasedCache.java:403)   at   com.android.volley.toolbox.DiskBasedCache.initialize (DiskBasedCache.java:156)   at com.android.volley.CacheDispatcher.run (CacheDispatcher.java:84)

What can I do to resolve this?

I'm using the GET RequestQueue method of the Volley library.

    
asked by anonymous 26.03.2015 / 18:26

0 answers