[問題] WebView與Jsoup

看板AndroidDev作者 (MOON影)時間12年前 (2013/03/12 13:58), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/1
大家好,小弟新手一枚 目前有些問題 目的:把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
用模擬器開啟APP錯誤
03/12 23:56, 2F
文章代碼(AID): #1HFpIYK3 (AndroidDev)