My application loads alot of data from a webservice and I'm using the volley library for the network request. Volley is stacking NetworkDispatcher objects and ends up crashing the application.
I made a test with DDMS Heap Dump (http://spragucm.wordpress.com/2013/11/21/debugging-android-project-ddms-heap-dump-in-eclipse/) and it revealed volley is instatiating 92 objects of "com.android.volley.NetworkDispatcher".
Why is volley stacking NetworkDispatcher objects?
The documentation clearly states that Volley is not suitable for downloading large data. You can consider using alternate such as the DownloadManager.
Volley is not suitable for large download or streaming operations, since Volley holds all responses in memory during parsing. For large download operations, consider using an alternative like DownloadManager.
Reference: Android Volley Documentation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With