java - How to predefine junction by JSoup parse? -
jsoup parses , displays list of links. how can track click on link, open new activity , start parsing link already?
here code:
protected void onpostexecute(void result) { super.onpostexecute(result); webview wv = (webview) findviewbyid(r.id.webview); wv.loaddatawithbaseurl(null, html,"text/html", "utf-8", null); wv.setwebviewclient(new webviewclient() { @suppresswarnings("deprecation") @override public boolean shouldoverrideurlloading(webview view, string url) { intent intent = new intent(mainactivity.this, trophactivity.class); startactivity(intent); return super.shouldoverrideurlloading(view, url); } });
i solved problem myself. fact jsoup parsed links without domain (not absolute)
for( element urlelement : hrefs ) { urlelement.attr("href", urlelement.absurl("href")); }
Comments
Post a Comment