java - How to display only a table from a html file into a webview in Android -
i know how 1 show table inside webview fetching directly given url. consider example url: http://www.soccerstats.com/, in right hand side have several tables showing played games , points, how including table containing details of premier league in webview. otherwise, option parse each individual elements , add 1 one. please help.
you can pretty jsoup. code this.
new asynctask<void, void, string>() { @override protected string doinbackground(void... params) { string data = null; try { document doc = jsoup.connect("http://wikipedia.com").get(); data = doc.select("css_selector_here").html(); } catch (exception e) { e.printstacktrace(); } return data; } @override protected void onpostexecute(string s) { super.onpostexecute(s); wv.loaddata(s, "text/html", "utf-8"); } }.execute();
Comments
Post a Comment