I have an html source and with WebView I load this source with:
WebView webView = (WebView) new WebView(getActivity());
webView = (WebView) rootView.findViewById(R.id.webView1);
webView.getSettings().setJavaScriptEnabled(true);
String sourceHtml = (String) this.getActivity().getIntent().getExtras().get(ROW_ID1);
webView.loadData(sourceHtml, "text/html", "UTF-8");
Now I want to save this WebView in BitMap or another in SdCard, I follow some guidelines, but it never works, how can I do this?
source
share