The problem is that your HTTP thread is attempting to update the UI Thread with the HTTPResponse
in a TextView
or other such UI element so a CalledFromWrongThreadException
is being raised.
Using a Handler
or other such mechanism to redirect to the UI Thread for the UI update will solve your problem.