I need to start Volley Requests when various events happen in my application. For example when the activity starts (onCreate()
) and when the user selects an item from a Spinner.
For this I created a method in my Activity which is supposed to return an ArrayList (for an Adapter). I create a new RequestQueue
here, because (I think) it is a different queue.
The problem is that the Request in the method just won't start no matter what I try. Simply adding it to the queue does not fire it and neither does start()
.
The Request in the onCreate()
works fine with just adding it to its queue.
Is there no way to start it without a queue (or force it to start)? I don't see any reason why I would want to make a queue when these requests are not chained.