i can't figure out how getting all javascript methods and their parameters from webview inside a fragment and calling specific java methods for each one;
In my fragment i have an html code like this :
String str="<div class=\"comment-page\" onclick=\"addComment(16802)\" style=\"margin-bottom:30px;background:none no-repeat right center #F4ECE1; padding-top:5px;padding-bottom:5px;border-top:3px solid #401B01; padding-left:5px; font-size:16px;\">add comment <img src=\"add.png\"/></div> content.loadDataWithBaseURL("http://www.mysite.com/",str, "text/html", "UTF-8", null); when i click on "add comment" i would like to show new activity or new fragment that contains a webview with input fields and "send" button which also has a javascript method .