http로 연결해서 ListView로 표시가 에러가 납니다
소스가 있습니다
그런데 모두 괜찮은데
public void getXMLDataList() {
String theUrl = "http://www.owllab.com/android/notice_list_main.php";
Log.i(TAG, theUrl);
ArrayList<NameValuePair> httpParams = new ArrayList<NameValuePair>();
// httpParams.add(new BasicNameValuePair("company_name_en", "OWL"));
cmsHTTP cmsHttp = new cmsHTTP();
cmsHttp.encoding = encoding;
cmsHttp.act = act;
String tmpData = cmsHttp.sendPost(theUrl, httpParams);
if (tmpData==null) return;
Log.i(TAG, tmpData);
ArrayList<articleMainItem> articleMI = new ArrayList<articleMainItem>();
// HashMap<String,String> hm = xml2HashMap(tmpData);
// HashMap<String,String> hm = xml2HashMap(tmpData);
hm = xml2HashMap(tmpData);
for (int i = 0; i < Integer.parseInt(hm.get("count")); i++) {
articleMI.add(new articleMainItem(hm.get("+subject[" + i + "]"), hm
.get("reg_date[" + i + "]")));
}
articleListAdapter articleListAdapter = new articleListAdapter(act,
R.layout.article_row, articleMI);
articleListAdapter.hm = hm;
//Toast.makeText(act,articleListAdapter.hm.get( "ArticleName[0]"), 5).show();
ListView articleListMain = (ListView) act.findViewById(R.id.articleListMain);
try {
articleListMain.setAdapter(articleListAdapter); ---> 이 부분에서 그림파일처럼 에러가 납니다
} catch(Exception e) {
Toast.makeText(act, e.toString(), 5).show();
}
// if (noticeMI.size()>0) noticeListMain.setSelection(0);
}
몇칠을 봤는데도 무엇이 문제인지 알수가 없습니다
제발 소스를 보시고 이유가 뭔지 알려주시기 바랍니다
부탁드리겠습니다



