Not able to load image while converting html to PDF using WebView in Android.

try this:-

Your webview should look like this:

mWebView.getSettings().setAllowFileAccess(true);
mWebView.getSettings().setDomStorageEnabled(true);
mWebView.getSettings().setAppCacheEnabled(true);
mWebView.getSettings().setLoadsImagesAutomatically(true);        
mWebView.getSettings()
  .setMixedContentMode(WebSettings.MIXED_CONTN 
  T_ALWAYS_ALLOW);

Comments

Popular posts from this blog

Lint found fatal errors while assembling a release target.

Android Studio 3.5 or above usb device not detected in Android Studio or Unable to detect adb version, exit value: 0xc0000135. ADB depends on the Windows Universal C Runtime, which is usually installed by default via Windows Update. You may need to manually fetch and install the runtime package here: https://support.microsoft.com/en-ca/help/2999226/update-for-universal-c-runtime-in-windows

Windows 7 all Version 64-Bit iso file Download with crack activation. (Google Drive Link)