I am new to Android Studio, I want to show a part of the website in my android application WebView (not the complete site). I tried to do it using jsoup library but no success. Currently I am trying to achieve this using the following code, but still no success. Please help me what to do for the same.
webView1=(WebView)findViewById(R.id.webView1);
webView1.getSettings().setJavaScriptEnabled(true);
webView1.setWebViewClient(new WebViewClient() {
@Override
public void onPageFinished(WebView view, String url)
{
url="http://https://mannudestiny.wordpress.com/";
webView1.loadUrl("javascript:(function() { " + "document.getElementsByClassName('site-content').style.display='none'; " + "})()");
webView1.loadUrl(url);
}
});
//webView1.loadUrl("www.google.com");