question about asynchronous http
Posted
by rantravee
on Stack Overflow
See other posts from Stack Overflow
or by rantravee
Published on 2010-04-17T20:22:20Z
Indexed on
2010/04/17
20:23 UTC
Read the original article
Hit count: 225
android
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 ?
© Stack Overflow or respective owner