android_volley_examples
android_volley_examples copied to clipboard
Synchronous Example
I was wondering if you could add a synchronous example to your set that uses RequestFuture
and future.get(4, TimeUnit.SECONDS)
I followed the sample in the source code of the RequestFuture but future.get() blocks first and then times out with no result!
Thanks
Hi, did you tested your request if it executes properly without using Future, i.e. as normal request?
@ogrebgr yes, it does work properly. Adding a breakpoint I can trace the code and see the result that's returned from the server. But it seems it's happening in a different thread and I can't get it to send the results back to the calling thread.