WebView not working completely.

558 views
Skip to first unread message

Bob H

unread,
Nov 19, 2013, 2:31:50 PM11/19/13
to chromi...@chromium.org
 
I am trying to port a website to an Android tablet using the Android WebView control . The Website works on a PC with the Chrome web browser.
  Most but not all of the features of the website work with the following code on the Android tablet.  
 
 
WebView vendWebView = (WebView) findViewById(R.id.webview);

 

WebSettings webSettings = vendWebView.getSettings();

// Enable JavaScript

webSettings.setJavaScriptEnabled( true);

 

 

 

vendWebView.setWebViewClient( new WebViewClient());

 

 

 

vendWebView.loadUrl(  https://xxxxxx.xxxxxxx.com/");
 
 
I looked at the HTML that is not working and it is just straight forward HTML buttons.
 
My question is should the HTML that works on the Chrome PC browser also work when it is
encapsulated in the Android WebView control ?
 
 
                      Thanks,
                       Bob H

 

David Turner

unread,
Nov 20, 2013, 7:18:29 AM11/20/13
to bobh...@gmail.com, chromium-dev
Unless you're running Android 4.4 on your device, the Android WebView implementation has little to do with Chrome / Chromium, and will very probably behave completely differently.
You would probably have a better answer on an Android forum, like android-d...@googlegroups.com


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Mikhail Naganov

unread,
Nov 20, 2013, 11:46:43 AM11/20/13
to bobh...@gmail.com, Chromium-dev
Hi Bob,

Android WebView has different layout modes, and dozens of settings, and all of this can affect layout and of your page as well as functionality available to it.

You can start with browsing these docs:




--
Reply all
Reply to author
Forward
0 new messages