Questions tagged [android-webview]

Part of the Android framework. A component that presents web pages. This class serves as a foundation to build your custom web browser or showcase online content in your application.

Tips for capturing Android web driver screenshots during test case execution?

I am encountering a failure exception while attempting to capture device screenshots Here is the code I am using: //open the page driver.get("http://wikipedia.com"); //take another screenshot try { File screenshot = new File("screenshot1.png"); ...

Invoking JavaScript function from an Android Activity

I have a simple JS function that is supposed to set values of some html contents, but it doesn't seem to be working properly. Here is the code for the JS function: function SetEdits(name,email,pic,date) { document.getElementById("myPic").src=pic; document ...

Initial loading issue with HTML5 Canvas in Android WebView

As I work on developing a HTML5 canvas-based game within a WebView of an existing application, I encounter a puzzling issue. Upon the initial run of the game, everything seems to be in order - logs indicate that it's ready and running, yet nothing is ...

Limit the ability to zoom in a webview application

I am facing an issue with my Android WebView app that is designed to load a specific URL and display it along with its links within the app. Despite setting the webpage size to 720px x 1280px using CSS to fit the screen of a Galaxy S3, I am encountering di ...

Stop video and audio playback in an android webview

Is there a way to pause audio and video in an Android WebView without disrupting the page rendering? I have tried various methods but haven't found one that successfully pauses both the sound and the video without affecting the WebView. webView.onPau ...

Enabling external ajax requests in an Android Webview with jquery mobile capabilities

I am working on a javascript/HTML application using jquerymobile that makes ajax requests to a remote server. While the app functions properly in Chrome (with web security disabled), embedding it within the assets/ directory of an Android application (a ba ...

LocalStorage in Angular application failing to function in Android web view

Working with Angular 4, I've developed a web application that stores the user security token in localStorage after login. The application uses this localStorage value to control the visibility of certain links, such as hiding the login button once th ...

What is the reason for the removal of escape characters by WebView's evaluateJavascript() method

I am facing an issue with passing a stringified JSON object into my WebView as a string. The problem arises when the JSON contains another nested JSON object. JSONObject object = new JSONObject; object.put("key1", "val1"); object.put("key2", "val2"); Stri ...

The android webview is having trouble loading HTML that includes javascript

I have been attempting to showcase a webpage containing HTML and JavaScript in an android webview using the code below. Unfortunately, it doesn't seem to be functioning properly. Can someone provide assistance? Here is the code snippet: public class Main ...

Switching input types in Android WebView: From Numeric to Password

I am facing an issue with my webview. In the webview, I have three input types: Number Text Password The problem is that when I switch from the number input field to the password input field, the numeric keyboard opens up instead of the qwerty keyboard. ...