Android WebView – “ads failing to load” solution
I just spent a few hours debugging something, and I thought it might be worth posting in case anyone else out there might ever have this obscure problem. My app brings up an external page in a WebView that contains ads. My emulator and my phone (not rooted) brought up these pages with little problems, but on my rooted Transformer Tablet, in my assigned WebViewClient, I kept getting an onReceivedError method call, errorCode=-6, description=”The connection to the server was unsuccessful.” This was happening on embedded doubleclick ad URLs and other external ad URLs. I thought maybe there was some security setting that prevented cross-domain or cross-site loading of scripts or images, but that seemed to be a pretty extreme default setting for WebView. (IE many sites load jquery directly from the jquery site, or use content delivery networks for images… both …
Android WebView – “ads failing to load” solution Read more »