Questions tagged [android-webview]

Part of the Android API. A View that displays web pages. This class is the basis upon which you can roll your own web browser or simply display some online content within your Activity.

A View that displays web pages. This class is the basis upon which you can roll your own web browser or simply display some online content within your Activity. It uses the WebKit rendering engine to display web pages and includes methods to navigate forward and backward through a history, zoom in and out, perform text searches and more.

Apart loading from the web, this component supports loading from assets (location file:///android_asset/, this folder must be called "assets" and be present in the project root) or other arbitrary folder. It also supports JavaScript but it is disabled by default and must be explicitly turned on.

Documentation for WebView.

7462 questions
3
votes
5 answers

How to display a webpage in android?

I need to open a webpage directly if i run the app. Without using a single a component in it.
AndRaGhu
  • 161
  • 7
  • 17
3
votes
0 answers

Using WebView for multi-page login to website and fetch data

I'm building an Android app as a mobile client for a website that does not (and will not) have it's own UI for mobile browsers. My chosen architecture uses a hidden WebView which I initialise (loadURL) with the login page, and then I load…
DaveF
  • 31
  • 3
3
votes
3 answers

Android WebView shows content only after a click/scroll

I am writing an Android app cotaining a webview, which loads a page including a rather large form. I show a progress bar during the loading of the form. When the progress bar disappears, I often see only a blank page or some few elements of the form…
omoling
  • 151
  • 7
3
votes
2 answers

WebView works on android 2.3.3, shows blank page on 4.0.1

I don't think this is a duplicate, but this question may be relevant. As of title: this works perfectly on android 2.3.3, randomly shows a blank page on 4.0.1. It usually works at first, then start displaying blank pages until the application…
miniBill
  • 1,743
  • 17
  • 41
3
votes
0 answers

WebView link highlighting occurs on some devices, not on others

Since feedback on links being clicked is important, I want this to happen on all devices. I tried setting -webkit-tap-highlight-color and -webkit-focus-ring-color in CSS but it has no effect on my 4.0.4 device. Several of my testers have reported…
InsanityOnABun
  • 5,973
  • 5
  • 21
  • 25
3
votes
2 answers

Android webview causing click listener not to trigger

I have a ListView that has a list of articles. Every X articles (10 currently), I have a WebView that shows an ad. I can click on any list item EXCEPT the one just above the one where the WebView is displayed. That one won't register my…
Dave
  • 28,833
  • 23
  • 113
  • 183
3
votes
3 answers

How can i load image url to fit my webview in android?

I am developing an android application.Here i am displaying a url image in webview. But the image is not fit to my webview. some one is suggested to use viewport concept. But i am not able to use that perfectly. I attached my issue in drawing form…
Raghu Mudem
  • 6,793
  • 13
  • 48
  • 69
3
votes
2 answers

Android WebView - NTLM Authentication

I have a WebView embedded in my application. I am trying to view a webpage that uses NTLM authentication. How can I perform the NTLM authentication using the WebView and view this page? I was successfully able to authenticate to this page using…
MediumOne
  • 804
  • 3
  • 11
  • 28
3
votes
1 answer

Google Analytics in Android Web app does not work in 4.0 or higher

I've been using Google Analytics to track my mobile app usage. I built it with Rhomobile (similar to Phonegap) and it uses a WebView to display the UI. I pasted the Google Analytics javascript code in the first page and it works perfectly fine on…
fnllc
  • 3,047
  • 4
  • 25
  • 42
3
votes
0 answers

Expand WebView and content in Android?

I use a webview to load a HTML5 animation. As default webview is a small banner and expand when click it, The HTML5 page also change large. I expect the progress very smooth, but a white background always shows on the bottom. And the HTML5 page show…
wayne_bai
  • 1,218
  • 4
  • 14
  • 23
3
votes
2 answers

Display accented characters in webview

My app does not display accented characters correctly. I looked into this last year but was not able to find a solution. I've been digging around but still have not found a solution. I've supplied a screen shot that shows what happens when the user…
3
votes
3 answers

WebView, showing blank in ICS

I am loading a local HTML document kept in assets folder into a WebView. It is showing fine in 2.3 devices but, showing blank screen in ICS + devices.
Manjunath
  • 2,063
  • 2
  • 29
  • 60
3
votes
2 answers

Android Webview not rendering correctly on ICS 4.0 +

I have a problem with an Android app I am working on. I loaded a locally stored HTML into a WebView and set: webSettings.setLoadWithOverviewMode(true); webSettings.setUseWideViewPort(true); webSettings.setJavaScriptEnabled(true); It works great,…
3
votes
1 answer

WebView and native browser crash on simple HTML

After struggling to find the cause of a crash in my app's WebView, I discovered that a very basic webpage causes even the native Android browser on two specific HTC models to crash. The models in question are an HTC Desire HD (Android 2.3.5) and an…
Paul Lammertsma
  • 37,593
  • 16
  • 136
  • 187
3
votes
2 answers

Android webview onReceivedError() not working

I'm trying to show an alert box instead of 'Web page not available' error page on my web view but not working even after adding onReceivedError() method as per documentation, please suggest me if I'm missing something, Here is my code... public…
user1065490
  • 305
  • 6
  • 16
1 2 3
99
100