Tag Archive: REST

Android: Odd Error in DefaultHttpClient

I’m working on a couple of projects that interact with REST api’s and consume JSON data and in doing so I use the DefaultHttpClient from apache, located in the Android framework. The Error Last night I was working on a project and kept getting this error: java.lang.IllegalStateException: Target host must not be null, or set…