I'm trying to integrate Disqus comment but I believe my problem is slightly different from the others.. My application is an app for an online blog, I had to extend the WebView class in orded to make few substitutions to the html code I download from the pages before displaying them in the WebView. So, whenever I try to show a page, I download the html, add some CSS modifying the html and then display it. Now, I got problem with Disqus, I already saw some tutorials and answers here but I didn't understand ho to integrate it in my App: the comments should be under the article I display...do I have to show them in another page? Isn't there a way to show them under? Am I doing something wrong?
Basically, this is what I do :
html = sb.toString(); // Result is here
cssContent = readCss();
html = html.replaceFirst("<div", "<div id=\"headerApp\"></div><div");
html = html.replace("<head>", "<head> <style>"+cssContent +"</style>");
html = html.replace("class='hidden-phone'"," ");
html = html.replace("class=\"btn-mobile-pager visible-phone\"","class=\"btn-mobile-pager hidden-phone\"");
loadDataWithBaseURL(null, html, "text/html", "UTF-8", null);
0 comments:
Post a Comment