This should be using an Executor with a callable and not AsyncTask. This is the preferred way of doing blocking network operations, and you can do more than one op at a time and have it update the string when finished.