android - Webpage with gif not working in WebView -
i've been searching quite while cant seem crack problem. have script on webpage, simple html page javascript behind it. gets random gif giphy, , when finishes, gets one, , one... infinitely.
i want show gif infinite generator in android application. i'm using webview:
webview wb = (webview) findviewbyid(r.id.webgif); wb.getsettings().setjavascriptenabled(true); wb.getsettings().setdomstorageenabled(true); wb.getsettings().setloadwithoverviewmode(true); wb.getsettings().setsupportzoom(true); wb.getsettings().setdefaulttextencodingname("utf-8"); wb.setwebviewclient(new webviewclient(){ @override public boolean shouldoverrideurlloading(webview view, string url) { view.loadurl(url); return true; } @override public void onpagefinished(webview view, final string url) { } }); wb.loadurl("http://vladmarton.com/rangif/index.html");
i tried, google.com results in webpage in app, no problem there, page not work @ all. suggestions? thanks
check vladikoff's answers this.
wiki
Comments
Post a Comment