[android-developers] Re: WebView in Andoird 3.x and 4.x does not load JavaScript files
Are you seeing any lines written in the LogCat (generated by the browser) that could indicate what is going on? Also, try set a WebChromeClient on the WebView and override onConsoleMessage. On the other hand, I've been working with WebView and JS for the last few weeks and it's often annoyingly quiet when something goes wrong. Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: WebView in Andoird 3.x and 4.x does not load JavaScript files
Thanks for your anwsers, @MathieuB Yeah, this would be an option for testing but not for the final release. At least I will try that although its some effort. @Streets Of Boston Unfortunately the LogCat does not show anything suspicious. I have overriden almost all functions of WebView and WebChromeClient to see what's going on. I can see it starts downloading files and then simply stops in the middle. @Pent Absolutely. If something goes wrong it is pretty annoying to find out why. In this case I am pretty stuck completely. I am fighting with this since months. It must be up to something they have changed after Android 2.x, because it works without any error in Android 2.x. And the fact that Chrome for Android shows the same weird behavior it must be up to sth. they have changed in Android 3.x and Android 4.x. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: WebView in Andoird 3.x and 4.x does not load JavaScript files
Do you absolutely need to load the files from a server? You could put them in the asset folder. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: WebView in Andoird 3.x and 4.x does not load JavaScript files
Are you seeing any lines written in the LogCat (generated by the browser) that could indicate what is going on? On Wednesday, July 11, 2012 9:37:27 AM UTC-4, rhansen wrote: Hey, We are currently developing an app by using HTML5, JavaScript and CSS in order to have some platform independence. On Android we do the following: We created a webview which downloads an HTML5 webpage from a server. The HTML5 file includes round about 40 JavaScript files. But somehow in the middle of downloading the JavaScript files the WebView simply stops. Therefore 'window.load' is not called and our JavaScript will never execute. This only happens on Android 3.x and 4.x. On Android 2.x (as well as Safari and Chrome (Desktop) and all iOS devices) it works without any problems. I downloaded Chrome for Android 4.x and used its remote debugging capabilities. It shows the same behaviour: It starts downloading the JavaScript files and stops somewhere in the middle. It does not seem to be up to a specific file though. Chrome stops on random files. At the moment this really stops us from developing for Android. We bought several devices (e.g. Galaxy S3) for testing, most of them equipped with Android 3.x and 4.x. I highly appreciate any hint in to the right direction to make it run. Any hint or workaround is very welcome. Even if we need to adapt our server for Android. Thanks René -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en