[問題] WebView與Jsoup
大家好,小弟新手一枚
目前有些問題
目的:把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
推
03/12 23:32, , 1F
03/12 23:32, 1F
→
03/12 23:56, , 2F
03/12 23:56, 2F