I've experienced a LOT of strange behaviours with using WebView
in Android
and I'm wondering why there are so many diffrences between the WebView
and the Browser
installed on each phone?
As an example, I've developed some applications that had to display HTML
content, which contained either jquery-mobile
, flash
,javascript
, YouTube embedded and so on. So I had a lot of problems with displaying this pages inside WebViews
. Either they wouldn't get displayed at all, just blank, either the videos won't play and so on. And the strange thing is that they work properly if opened in the Browser
installed on the phone. I had JavaScript enabled, I tried diffrent WebSettings
, I had set the WebChromeClient
and WebViewClient
looking for javascript errors... but nothing worked.
So I got to the conclusion that the WebView
component is completely different from the Browser
application installed on the phones. I'm thinking that every manufacturer makes their own Browser
to support as many as possible pages, and the WebView
remains the standard one, included in the Android SDK
.
Am I right? Or there is another reasons/explanation for this? Thanks.
EDIT: Everything that @ondoteam has suggested was enabled and set at the time being. I no longer have the references to that websites, which anyway were internal.