String result = "{}";
  try
  {  
     HttpClient client = new DefaultHttpClient(); 
     HttpGet httpGet = new HttpGet(getUrl);
     HttpResponse responseGet = client.execute(httpGet); 
     HttpEntity resEntityGet = responseGet.getEntity();  
     result = processEntity(resEntityGet);
  }
  catch (Exception e)
  {
     e.printStackTrace();
  }

  return result;

 

 

------------------------------------------------------------------------------------------

 

위 소스 코드에서 client.execute(httpGet);  실행시

 

AndroidManifest.xml 에서 api 버전을 8로 하면(안드로이드 프로요) 하면 되는데

 

api 10이상 즉 진저브레드 이상이면 http 연결이 안되는구요.

 

퍼미션도 줬구요 ㅠㅠ 머가 문제 일까요??? 그 이상 버전은 보안 문제가 걸리나요????????

 

아래와 같이 다른 연결 방법을 써도 마찬가지 입니다.

 

-------------------------------------------------------------------------------------------

 

      URL url = new URL("getUrl);                          
      HttpURLConnection conn = (HttpURLConnection) url.openConnection();   

      conn.setUseCaches(false);

     int resCode = conn.getResponseCode();  

 

-------------------------------------------------------------------------------------------------