webview.loadUrl works fine when I debug the app. But when I generate a signed APK, it doesn't work.

Viewed 1040

When I call webview.loadUrl in debug environment, it works fine. But when I call webview.loadUrl in signed APK, it doesn't get called. What might be the reason?

Below is my code snippet:

webview.loadUrl("javascript:window.HTMLOUT.processHTML('<head>'+document.getElementsByTagName('html')[0].innerHTML+'</head>');");
1 Answers
Related