nss
nss

Reputation: 121

Android Volley NetworkDispatcher

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?

Upvotes: 3

Views: 459

Answers (1)

Hungry Coder
Hungry Coder

Reputation: 1820

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

Upvotes: 1

Related Questions