Back to project page FeedListViewDemo.
The source code is released under:
MIT License
If you think the Android project FeedListViewDemo listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package io.bxbxbai.androiddemos.utils; // www. ja va 2 s . co m import com.android.volley.Request; import com.android.volley.RequestQueue; import com.android.volley.toolbox.Volley; import io.bxbxbai.androiddemos.AppController; /** * Created by baia on 14-9-13. */ public class RequestManager { public static RequestQueue mRequestQueue = Volley.newRequestQueue(AppController.getInstance()); private RequestManager() { // no instances } public static RequestQueue getRequestQueue() { return mRequestQueue; } public static void addRequest(Request<?> request, Object tag) { if (tag != null) { request.setTag(tag); } mRequestQueue.add(request); } public static void cancelAll(Object tag) { mRequestQueue.cancelAll(tag); } }