question about asynchronous http
- by rantravee
Hi ,
I just want to check if I understood well the way asynchronous Http request work on Android.
Suppose I make such a request and set a ResponseHandler<String> responseHandler to handle the response. By doing this is it possible to have the UI thread blocked waiting for the response ? The implication being that the code in the function:
public String handleResponse(HttpResponse response)
is also executed on the UI thread or is there silently spawned a thread that waits for the response and calls the handleResponse(HttpResponse response) function when the response arrives ?