作者stevenklc (MOON影)
看板AndroidDev
標題[問題] WebView與Jsoup
時間Tue Mar 12 21:58:54 2013
大家好,小弟新手一枚
目前有些問題
目的:把GOOGLE新聞其中的一div顯示在WebView上
code:
Document doc = Jsoup.parse("
http://ppt.cc/yiD3");
Elements ele = doc.select("div.google-one-wrapper");
String html = ele.toString();
String mime = "text/html";
String encoding = "utf-8";
web=(WebView)findViewById(R.id.webView1);
web.loadData(html, mime, encoding);
但是結果都是錯誤的= ="
懇請各位大大解答
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 111.251.111.61
1F:推 f8181810:結果是顯示什麼呢? 03/12 23:32
2F:→ stevenklc:用模擬器開啟APP錯誤 03/12 23:56