버스 정보를 인터넷에서 파싱해오는 소스입니다.

 

  try{
         
         ListView list = (ListView)findViewById(R.id.listView1);
         
               
         ArrayAdapter<String> Adapter;
         
         ArrayList<String> arInform = new ArrayList<String>();
         
      URL sUrl = new URL("     
        "http://bus.changwon.go.kr/map/BusSearch/RealStopSearchResult.asp?BSID=696");
      HttpURLConnection conn = (HttpURLConnection)sUrl.openConnection();
     ////////// 1번위치///////////

 InputStream html = sUrl.openStream();
      //////////2번위치///////////
      Source source = new Source(new InputStreamReader(html, "euc-kr"));
      
      source.fullSequentialParse();
  

 

 

지금 보시는 소스를 자바에서는 문제없이 돌렸는데 안드로이드에서는 돌아가지가 않습니다.

토스트로 확인해본결과 1번위치까지는 가는데

2번위치에서의 토스트 결과는 뜨지 않네요;

오류는 없는데 자바에서 문제없던게 왜 안드로이드에서 이런걸까요??

 

개발자님들의 도움 부탁드립니다.