通过以下代码,我无法解析来自 URL 的数据
try{
HttpClient client= new DefaultHttpClient();
HttpGet http= new HttpGet("http://api.androidhive.info/contacts/");
HttpResponse response = client.execute(http);
HttpEntity httpentity = response.getEntity();
is= httpentity.getContent();
}catch (ClientProtocolException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}