String url = "http://blog.csdn.net/laihuan99/article/details/9144227?reload";
long start = System.currentTimeMillis();
Document doc=null;
try{
doc = Jsoup.connect(url).get();
}
catch(Exception e){
e.printStackTrace();
}
Elements elem = doc.getElementsByTag("Title");
TextView txt=(TextView) findViewById(R.id.textView1);
txt.setText(elem.text());
在2.3.3的模拟器中运行不出错,但是在4.0的模拟器中运行就会出错,提示 Unfortunately,*** has stopped。
这是为什么呢?