Questions tagged [webviewclient]

An Android class to intercept load requests, key events, and other events.

An Android class that is attached to a Webkit Webview to intercept load requests, key events, and other events.

Documentation: https://developer.android.com/reference/android/webkit/WebViewClient.html

321 questions
4
votes
2 answers

Android - webview - shouldOverrideUrlLoading not called - when user clicks links inside iframe

In our app, we are using webview to load external link inside a view. Loaded the link using loadurl method and set webview client to show preloader and webchrome client to listen for any link change for the webview. URL loaded inside webview. When…
Srinivasan
  • 433
  • 3
  • 8
  • 20
4
votes
2 answers

Android WebView clear Basic Authentication Credentials

I've made an app that authenticates with a server using basic authentication. However I cannot clear out the credentials so this means I have two unresolved issues: The user cannot logout without exiting the program If the user enters in the…
4
votes
2 answers

Link that goes directly to the Android Market in a Webview

In my Android, if I click on on a link that leads to the Play Store, Android automatically opens up the play store so that I can download the app. If that link is in a webview for the app, instead a webpage opens, similar to the one that would open…
David
  • 2,834
  • 6
  • 26
  • 31
4
votes
2 answers

android webview Related

I have multiple html files which i saved in the assets folder. one of my html file is:
user1602259
4
votes
1 answer

WebViewClient shouldInterceptRequest handling gzipped data

I want to intercept all HTTP requests in a WebViewClient and make my own requests. The problem I'm having is dealing with gzipped responses. There are a couple different posts suggesting methods that will work (such as…
4
votes
5 answers

Android - Load PDF inside webview

I have this webview code and I want to make it possible to have the PDF files opened when a user clicks on a PDF link. Here is the code, can you tell me what I have to put inside the PDF area of this? I've tried many different ways and I cannot…
user1363871
  • 580
  • 3
  • 11
  • 29
3
votes
2 answers

android webview not loading/opening pdf

My webview is loading google chrome. When the user browses the webview app he can navigate to any links which is working fine. But when the user navigates to a link which contains pdf my webview fails to open or download the file. How can I achieve…
Abm
  • 271
  • 2
  • 15
3
votes
0 answers

Unable to redirect to app from WebViewClient with custom URI scheme on Android 11

I would like to implement Twitter's social login function in an Android app developed based on Flutter, but after logging in with WebView, the redirect to the app using custom URI scheme does not work as follows. The Android 10 (API 29) emulator…
imamuu
  • 31
  • 1
3
votes
2 answers

Android Webview Facebook Login

In my app, I want to make users be able to login with their Facebook account. After some searches, I am able to figure out this although I don't think this way is the best method. I used a webview in my UI, and a webviewclient to sense url…
barisatbas
  • 570
  • 2
  • 9
  • 22
3
votes
0 answers

WebViewClient onLoadResource analog in WKWebView

I did saw the documentation of WebViewClient of android and examine method . My question: an analog of this method are exist of…
Ice
  • 680
  • 1
  • 10
  • 23
3
votes
3 answers

WebView onTouch handling when the user does NOT click a link

I am working on an Android app which displays content in a WebView. The content contains links, and those links are being handled via a custom WebViewClient and use of javascript and shouldOverrideUrlLoading() method to follow the link depending on…
Dale Hamill
  • 113
  • 1
  • 6
3
votes
1 answer

When does onNewPicture() get called?

The documentation for onNewPicture() only says: Notify the listener that the picture has changed My question is: When does the picture change? I noticed that some web pages generate dozens of onNewPicture(), so obviously the "picture" changes…
Regex Rookie
  • 10,432
  • 15
  • 54
  • 88
3
votes
1 answer

How to connect webviewclient and Chromeweb view client

I already created progressbar in my web view.So It will disappear after loading web view.Now i want to add error.html page to show no internet message..I have the code but I don't know how to connect them...help me Here is my code: protected…
Mr.Soft
  • 143
  • 2
  • 14
3
votes
1 answer

HTTP status code webview android, WebViewClient

So I read through many questions on SO and still would want to ask this. I have a webview in my fragment. I am calling a url and want to know HTTP status code (success or failure). I have extended a class from WebViewClient class and below is…
Rahul Ahuja
  • 812
  • 10
  • 24
3
votes
1 answer

onPageFinished in WebViewClient doesn't seem to fire correctly

I have seen one other SO question on this and it was not resolved. I am using LoadData() with application generated html. I noticed when I add a few blank lines after new text the page scrolls and the text takes a moment to magically appear (no…
Jim
  • 1,966
  • 3
  • 24
  • 33