Questions tagged [webchromeclient]

WebChromeClient is an Android class to intercept JavaScript dialogs, loading progress, and other events.

WebChromeClient is an Android class to intercept a Webkit Webview's JavaScript dialogs, loading progress, and other events.

Resources

137 questions
0
votes
1 answer

Android WebChromeClient supply different method on all Android version, how to use them?

WebChromeClient supply "onShowFileChooser" on Android 5.0, also supply "openFileChooser" method below Android 4.4 method,How to compatible with them? Has anyone managed to do this?
Elvira
  • 1
  • 2
0
votes
1 answer

Accessing Activity Methods from WebChromeClient

I am using Xamarin to write an Android application, and in that application, I have a webview that needs to load at the creation of the app and after it is fully loaded, I call some javascript into the HTML page to set up the graph. I am trying to…
0
votes
1 answer

Why is whatsapp web restricted to google chrome only?

Just curious about this, why is whatsapp web restricted to chrome only? Are there any security issues with other browsers or is it something specific to chrome engine or is it something related to performance or is it the mobile to pc…
Ronak Agrawal
  • 1,006
  • 1
  • 19
  • 48
0
votes
1 answer

Detect when #close is a part of url in WebView

I have a WebView that I'm trying to handle behavior for when #close is added to the end of a url. The code below triggers for every load url that doesn't have #close appended to it. How do I handle for this? WebViewClient wvc = new WebViewClient()…
rkeller
  • 69
  • 10
0
votes
1 answer

Android WebChromeClient onCloseWindow not working

I have a simple android app that opens a webview to call a web application. I want to close the entire android app when the web application has a window.close(); I also want the back key to navigate back through the web pages, and that is…
SuzieQ
  • 1
  • 1
  • 2
0
votes
1 answer

Result from OpenFileChooser in Android Webview cause the app unrespond

I am developing the hybrid application in android. In this application I am trying to get the image (either from camera or gallery) as user profile picture. Here is the code that i use to get the image. @Override protected void onCreate(Bundle…
Prabhu Easwar
  • 153
  • 1
  • 2
  • 10
0
votes
1 answer

WebChromeClient in device android not work

I have this code with Loading webview, which uses the properties of Google Chrome. The problem is that the emulator the webview loads a url containing html5 and it works perfect but on a android device using the properties of the default browser…
user3810167
0
votes
1 answer

Triggering WebChromeClient onRequestFocus

I'm trying to trigger WebChromeClient.onRequestFocus() callback. In order to acquire information on when it is called, I've dived into android project tests. I've googled up test case of WebChromeClient from 2009 and created following piece of code…
mkrasowski
  • 207
  • 1
  • 11
0
votes
1 answer

Android Geolocation on webview

I need to get the location of a user from within a webview and it's not asking me for permission to get the location. Below is my webview code: WebView Setup public void WebViewSettings(){ webView = (WebView) findViewById(R.id.webview); …
Paddy1990
  • 946
  • 4
  • 13
  • 30
0
votes
1 answer

How to handle a button pressed inside the webChromeClient callbacks?

How to make the webChromeClient()calss's callbacks handles and listen to a button? The problem I have is that, I have a button and anedittext field, both of them are in a RelativeLayout and the webView is layed-out above them so I can avoid mixing…
0
votes
1 answer

Can you have two webViews running at the same time in the same activity in Android?

I created a simple activity that contains two webViews side by side. I use the following code to initiate them. setContentView(R.layout.detail); //xml layout that contains two webviews webView1 = (WebView) this.findViewById(R.id.webView1); webView2…
stackdaddy
  • 111
  • 1
  • 10
0
votes
0 answers

Error while performing action in WebView

I'm able load the URL in my WebView. But if I perform some action (like click event), I'm getting following error in LogCat: Unable to get value of the property 't': object is null or undefinedundefined But if I perform some events from the…
Gokul Nath KP
  • 15,485
  • 24
  • 88
  • 126
0
votes
1 answer

WebView changes pages some moments after onPageFinished()

I'm changing the WebView's visibility to visible when onPageFinished() is called but the previous page is visible for a few moments before the WebView renders the new page. Is there any way to catch the page rendering done event of the WebView?
timemanx
  • 4,493
  • 6
  • 34
  • 43
0
votes
2 answers

Webview Video doesn't stop on Backpress - Android

In my android application I want to open a webpage in a Webview. A webpage which i want to open also contains video. To achieve this functionality, I used WebChromeClient in my application. The problem is that, OnBackPressed() of this activity, some…
Zankhna
  • 4,570
  • 9
  • 62
  • 103
0
votes
0 answers

Android Webview - Upload

I have seen the solution mentioned here, but I can't figure out, how to make it work with my code. Here is the code (displaying simple page with file upload). My app should compatible with Android 2.3-4.1 package com.myapp.test; import…
Kokesh
  • 3,165
  • 7
  • 29
  • 46
1 2 3
9
10