I am getting UnknownHostException in Line 2 when I use url (I can access using browser):
http://www.khanacademy.org/api/v1/playlists
but it works fine for all the other 2-3 url’s
httpGet = new HttpGet(getUrl);response = httpClient.execute(httpGet);
I tried searching in previous posts and tried restarting the system/emulator etc. but its not solving.
Thanks,
View my answer here. The idea is the same. The String “enter” in my code will be the parsed String. Reusing tested code will save you a lot of hassle. If this doesn’t help, please let me know.