Tag: webview

Android WebView ignoring target=“_blank” when added WebViewClient

I am facing a strange issue. In my application, I need to load a static html file based on clicked button in a WebView from assets folder. Now among 5 html files, one html file contains 15 static links. These links need to redirect user to the mentioned url in a mobile browser. I have […]

Framework7 inside webview pages not loading

I am new to framework7 and I am trying to make it work inside on android. Here’s what I did, Created project in android studio, with webview to load index.html and it works. But the link to the pages “about”, “services” and “form” doesn’t work. I saw that framework7 uses ajax to call those pages. […]

Android Webview (Phonegap): Disable Autocorrect, Autocapitalize and autocomplete doesn't work

i have a problem with my loginpage which is loaded in a Webview on Android (Phonegap). i used the attributes autocorrect=”off” autocomplete=”off” autocapitalize=”off” for my input fields and form tag but it doesn’t work. the device shows simmilar words and the content goes up and down when i type a letter or number. have anybody […]

View too large to fit into drawing cache on Webview inside scrollview

I am working on a scrollview that contain a webview, it works perfect on the 2.3, 4.1 , but when I try it on the 4.4 emulator, it show View too large to fit into drawing cache, needs 5744640 bytes, only 3932160 available The webview is just blank. And it is the layout <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” […]

Is there a way to catch Web console errors?

Using WebView, certain websites take very long time to complete page load (as in WebViewClient.onPageFinished()) and, when that happens, this is characterize by Web Console errors of the following type: E/Web Console(1916): Unsafe JavaScript attempt to access frame with URL http://mobile.example.com from frame with URL http://ad.doubleclick.net/adi/interactive.example.com/front_sub;sz=320×50;ord=7340930261983. Domains, protocols and ports must match. 05-26 10:44:15.274: E/Web […]

WebView download opens browser window for a short moment before returning to WebView

My Problem is that when I hit the pdf link in the webview, the browser opens for a short moment (I guess to download the linked file), the pdf file starts to download and the app returns back to the webview. Is there a way to stop the browser window opening to start the download? […]

Android WebView isn't loading cached Website if there is no connection

I am trying to cache the website loaded in WebView but I can’t get it working if the network connection is OFF. Cachdirectory is created, cached files are there. Permissions are given. I load the WebPage then switch off network (WI-FI permission is also given) and I get the error as I am trying to […]

Android – Use WebView to evaluate a javascript string and return the value

Given that scripting is not natively supported in Android and wrapping libraries like javax.script.ScriptEngine into your app will make it too large, is it possible to send a javascript string to an invisible WebView and have it evaluate the string and return you the results (another string)? I want to go this route because I […]

Android WebView not respecting scaling percentage

I have a WebView which I’m trying to have scale to a certain percent on loading the page. The iPhone version of this software uses the HTML meta-tag: <meta name=”viewport” content=”width=320, initial-scale=0.95, maximum-scale=2.0, user-scalable=1″> Since Android’s WebView doesn’t seem to respect that tag I hard-coded the percent using setInitialScale(). However, the WebView is just flat-out […]

How to add crosswalk webview in my own android library module?

I am in the development of an Android library module which has to include Crosswalk Webview. I create the library using Github Sonatype (https://github.com/sonatype/). It works fine without Crosswalk Webview. I tried the following 3 methods to include Crosswalk. Method 1: Add Crosswalk Webview library in my library project app gradle Error : (Compile error) […]

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