Tag: webview

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) […]

WebView is not filling the whole screen of device or emulator

I am developing an android application which loads a web application when started. To achieve the purpose I am using webview control. I want my webview to be displayed full screen so that it will give native feel to the users. I tried all the methods to display webthview full screen but nothing is working. […]

Read Keyboard events in Android WebView

I’m trying to listen to key events in android web view. Example when user is filling a form, I should receive the key events. This is my WebView code public class MyWebView extends WebView implements OnKeyListener { ….. @Override public boolean onKeyDown(int keyCode, KeyEvent event) { Log.i(“PcWebView”, “onKeyDown keyCode=” + keyCode); return super.onKeyDown(keyCode, event); } […]

How to pass JSON-formatted data from a WebView to a HTML page

I am trying to pass JSON-formatted data from my Android WebView to a HTML page. However, the app crashes whenever I try to parse the original JSON data, which I am expecting to be of the format {“key”:”data”} The aim of my app will be to interpret this JSON data, form it into an array […]

webview.loadUrl(“about:blank”) issue

In my application I have a webview in which initially I load any website, say www.google.com. Later on a button click I want to clear this webview, for which I do webview.loadUrl(“about:blank”); But doing this does not clear my webview, it continues to display google.com I tried to re initialize the webview as webview = […]

How do I keep my Cordova app full-screen when opening the Android keyboard?

I’ve created a Cordova app and I’m testing it on a Nexus 4. I’ve used the basic steps listed in the Cordova CLI workflow to get up and running. I’ve also modified my config.xml with this: <preference name=”Fullscreen” value=”true” /> My app runs full-screen as expected. As soon as I click on an input field […]

Clicks Does Not Working in WebView

I have a webview in my android app. I have loaded the url: https://imsnsit.org/imsnsit/notifications.php There are links to various notifications. My WebView is doing nothing when I click on them. It is working on everything else – Chrome (Android), Chrome(Desktop). The links are fine. One thing I notice notifications have the href with PHP file. […]

Webview doesnt show Æ Ø Å properly

I have some content on a webpage which contains æ ø å, but my webview cant show them properly. Does anyone know what the problem might be ?

Android webview SKIPS javascript even with setJavascriptEnabled(true) and WebChromeClient

(using Samsung Galaxy Tab and Android 3.0, this is intended to work on every 3.0+ tablet, like it does in their browsers, just not webview) I have a page with CSS and jQuery that loads fine in browsers, android browsers and iOS devices, but android webview refuses to load it consistently. I’ve narrowed down the […]

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