Tag: webview

android webview with client certificate

I tried for days to use a web view with a client certificate embedded in the application, but it seems to me that the android sdk does not provide any way to do it, is there a callback to intercept the challenge sent by the server? is there a way to use webview with a […]

Is there anyway to remove an onTouchListener from a view object?

I have an on touch listener for a webview, but it has a bad effect on the functionality of the webview, so I am wondering if there is anyway to removed the on touch listener after the initial interaction?

Fill fields in webview automatically

I have seen this question floating around the internet, but I haven’t found a working solution yet. Basically, I want to load my app and press a button; the button action will then fill in a username and password in a website already loaded in the webview (or wait for onPageFinished). Finally, the submit button […]

Android – If WebView visible an extra, buggus, View is also is created

I’m having a strange bug: a new box appears in the screen (even outside the bounds of the app) when a WebView is visible in my RecyclerView. This box has the same dimensions of the WebView and it appears at the bottom-left corner (A grey box on the bottom-left of the image) I will describe […]

Android webview shouldOverrideUrlLoading is not called

In my application, shouldOverrideUrlLoading() is not called on Honeycombe 3.2 version. I have tested it on 2.2 and 4.0.1 and they all are working fine. Is it a bug in Honeycomb? How can I work around it? I need to send the custom header for every request in shouldOverrideUrlLoading() view.loadUrl(url,headers); Thanks in advance.

WebView loadDataWithBaseUrl – weird issue in android 4.0.3

In my project there are two WebViews and I am switching these WebViews alternatively to get a smooth animation while loading my url. When I am using Webview.loadUrl() method, it works fine in all devices. But when I am using the same code with loadDataWithBaseUrl() then its not working in 4.0.3 but it’s working fine […]

How to bring focused field into the view using iscroll and Android WebView

When I focus into a form field at the bottom of iScroll view, it does not scroll up/bring the focused field above the softkeyboad. Any idea? Thank you! This is the Android project. https://dl.dropboxusercontent.com/u/75818136/webkitdemo.zip <!DOCTYPE html> <html> <head> <meta charset=”utf-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0″> <title>iScroll demo: simple</title> <style type=”text/css” media=”all”> body,ul,li { […]

WebView doesn't show JSAlert on Lollipop devices

It wasn’t showing JSAlert on any devices. And then I set a WebChromeClient: webView.setWebChromeClient(new WebChromeClient() { @Override public boolean onJsAlert(WebView view, String url, String message, JsResult result) { return super.onJsAlert(view, url, message, result); } @Override public boolean onJsPrompt(WebView view, String url, String message, String defaultValue, JsPromptResult result) { return super.onJsPrompt(view, url, message, defaultValue, result); } […]

Set credentials on an Android Webview using secured HTTPS connection

I would like to create an Android Webview that connects to a website via a secured HTTPS connection with the use of credentials. First difficulty was to accept the certificate (private), it was solved with this very useful post. Second difficulty is to use credentials, I found this post. (first answer from dparnas) which seems […]

WebView java.lang.SecurityException: No permission to modify given thread

I have an application that uses multiple WebViews. Nowhere do I set the priority of the render thread through the WebSettings though I still get the exception below. So far it only seems to happen on android 4.0.4, which I haven’t found the source code for. Anyone run into this and/or knows a solution? Thanks! […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.