I am trying to set the priority of my requests using the Volley library in Android. I cant find out how to set the requests priority.
StringRequest request = new StringRequest(Request.Method.GET,"feed URL",volleyListener, volleyErrorListener);
pe.requestQueue.add(request);
Any Ideas on how I would do this?
Heres a quick way to set a priority,
The library unfortunately isn't fully fleshed out yet. To set priority for a request you need to extend the request and override getPriority(). For your example I would create a new class that extends StringRequest and implements getPriority() (and maybe a setPriority() as well, so you can programmatically change priorities in different requests).
Priority
is an ENUM from theRequest
class.