Volley framewok request keeps objects in memory

前端 未结 1 1128
小蘑菇
小蘑菇 2020-12-22 06:46

I\'m making a volley request in this way:

   public void makeRequest(BaseRequest request, Response.Listener responseListener,
                      


        
相关标签:
1条回答
  • 2020-12-22 07:13

    NetworkDispatcher has only 4 threads by default so i think your problem is caused by creating multiple requestqueue and old threads dose not killed, use singleton queue, for refering to that look at:

    http://developer.android.com/training/volley/requestqueue.html

    each request queue has only 4 threads but in your image i can see more than 4 so obviously your problem caused by not using singleton design pattern.

    0 讨论(0)
提交回复
热议问题