freezy/android-xbmcremote-sandbox — pull request #8 by jstemmer (2012-01-08 11:35:39+00:00)
Title: Rewrite http request backend

I have replaced the apache httpclient with the new HttpURLConnection.

There was also some duplicate json parsing/handling, so I have moved that to a single class as well. The JsonApiRequest class accepts a json object which is used as the body of the http request. The response is parsed and the actual result inside that json response is returned as a new json object.

The JsonApiRequest now throws a single ApiException (which partly replaced the ErrorHandler interface inside the AbstractClient) containing any information related to the error.