Questions tagged [android-webview]

Part of the Android API. A View that displays web pages. This class is the basis upon which you can roll your own web browser or simply display some online content within your Activity.

0
votes
0answers
7 views

WebView component not show web page: Webpage not available

Android Studio 3.2. In my Manifiest.xml <uses-permission android:name="android.permission.INTERNET" /> In my xml layout: <layout xmlns:android="http://schemas.android.com/apk/res/android" ...
0
votes
0answers
12 views

ActivityManager kills app when Chrome updates

I noticed that each time the Chrome app gets an update, my application is killed. Force stopping com.android.chrome appid=10145 user=-1: installPackageLI Killing 14427:my.application.com/u0a263 (adj ...
0
votes
0answers
9 views

How can I expose JavaScript events in Angular 5?

Applications Web application using Angular 5. Android Application using the above web app in web view. Scenario - I want to fire some events on certain actions from my angular application so that ...
0
votes
0answers
11 views

How get content of webView in android using NativeScript framework

Is there a way I can read the content of webview after the page is loaded in android using nativescript. I am using this webview : https://docs.nativescript.org/angular/ui/ng-ui-widgets/web-view I ...
1
vote
1answer
25 views

Progress Dialog is not working in android studio

I want to display progress dialog in my app until it loads the URL and displays it. But it is not showing the progress dialog. Please help me. setContentView(R.layout.activity_main); mywb = (...
0
votes
0answers
15 views

How to terminate Action from ShouldOverrideUrlLoading for Android Xamarin.Forms

So, I have this webview that pops up upon navigating outside of the app, I then have a routine in the ShouldOverrideUrlLoading routine that checks if the URL it is being directed to contains a *.pdf ...
0
votes
0answers
15 views

Android WebViewClient find if its user-click or auto-redirect?

I understand that whenever a redirect happens WebViewClient.shouldOverrideUrlLoading(WebView wv, String url) gets called for both user-click and auto-redirect. Requirement is to perform a special ...
0
votes
0answers
20 views

Web View showing no response with Post type request in android

I am trying to POST request type url using Web View but it is now working there. It is not showing any error in stack trace and nothing is showing on the WebView, only blank white background is coming....
-1
votes
0answers
32 views

Android webview content not load in Android 4.4.2, Loading slow in 5.1 and loaded little faster in 8.1

I am suffering this problem on last two days. I am searched many more but not success, i am try many link as below- Android webview loading data performance very slow Android webview slow Android ...
0
votes
0answers
25 views

Implementing webview and handling callbacks

Im trying to implement android webview in a nativescript app. The webview is for handling prescriptions(refills/transfers) with the walgreens api. The webview requires some logic to navigate it and ...
2
votes
1answer
47 views

Why is my webview on Android loading slowly?

when I try the link in the browser, it opens very quickly while on my Android webview, it runs slowly what should i do so my webview can run faster? webview.settings.javaScriptEnabled = true ...
0
votes
0answers
26 views

React-Native :: WebView :: Some Blank Pages With No Apparent Pattern

[ ] EDIT: On the third reboot of my Mac, spontaneous self-fix of problem not fixed by prior two reboots. So if anyone encounters this issue, just keep rebooting until it works, apparently. For our ...
0
votes
0answers
20 views

Use drawable inside HTML Page

I am developing an application in which I am loading an HTML page inside Webview. I am to use an image in that HTML which is inside my drawable. How would I give path to that image inside HTML.
1
vote
1answer
62 views

How make a content of a html table compatible with any screen resolution?

I have the following html code with a <table> that also will be showed in mobile devices and have a trouble. If i insert much content inside this table, in devices with small resolution (small ...
0
votes
4answers
67 views

Activity restarts when called from service

I have a service in my app of a floating button (like facebook messenger) and when clicked , my activity returns from the background , but it doesn't return in the same way it was when it was ...
0
votes
1answer
19 views

Webview activity not showing anything on second load

I have this weird problem when showing an activity which consists (only) out of a webview. The first time I start this Activity B by clicking on something in activity A, B is properly loaded and ...
0
votes
1answer
30 views

Website opens as android app, but cannot interact

So I tried converting the site I am working on to an android app using android studio App was built successfully, no errors, opens when clicked but just stays static. I cannot interact with it.. It ...
0
votes
1answer
25 views

How to fire javascript event in Android WebView on app resume

I have a WebView in my Android app, and I need to run a function whenever the app/WebView is switched to (e.g. using the app switcher or tapping the icon from the home screen) the device wakes from ...
0
votes
0answers
17 views

React Native: Opening a WebView modal over a WebView on android freezes the underlying WebView after closing the modal

I've created a react native app where one screen is a WebView form where pressing a button opens up a custom made Modal whose content is another WebView, thereby allowing the user to navigate away ...
0
votes
1answer
17 views

Disable input controls in Android webview

I have a Webview in an Android App. Any type of content(pdf,png,doc) will be loaded in the Webview. I need to disable the input controls (checkbox, inputbox) in the Webview content. And If we use ...
0
votes
0answers
18 views

React Native WebView postMessage does not work in some android device but in some one them it's working

I am working on react Native webview, I try to post some message to onMessage() function in Webview props. It's work very well in some of the android devices and some of it's not working. I am not ...
0
votes
1answer
34 views

Activity with webview crashes

I have an activity that shows webview along with other views. When I start this activity the webview loads just fine but when I press the back button and exit the activity, the app is crashed with the ...
0
votes
0answers
15 views

javascript in android webview does not work in galaxy note 8/9

I have an app that consists of a pure webview. I have been running this app for about six months and have had no problems so far. But about a month ago there was a problem. Users of galaxy note 8 and ...
2
votes
2answers
37 views

Clear search results from web view

How can I clear search results from WebView? I used clearFormData(), clearHistory() methods but when I click on search field on https://google.com it shows me my previous search results. UPDATE: The ...
-1
votes
0answers
20 views

WebView Browser footprints in request headers

When I am accessing a web page https://eenaduclassifieds.com through Android WebView, website is displaying a message - 'Please update your browser', whereas the web page opens correctly on mobile ...
0
votes
1answer
37 views

How to make android app using WebView without lags?

I'm just trying to build my first app using WebView for website wikidiy.org. I've tried a lot approaches I found here, but the app is still very laggy. Is there any way how to make this app without ...
0
votes
0answers
46 views
+50

How to revoke `requestDisallowInterceptTouchEvent(false)` without lifting finger (Action.UP or Cancel)?

I have webview(s) inside the recyclerview. In order to get smooth scrolling experience such that when user scrolls, the recyclerview will be responsible for scrolling (webview should not scroll) I ...
0
votes
1answer
28 views

How to launch a Desktop site from my app?

I'm uploading a URL to CustomTabs. I want to enable pinch zoom in CustomTabs. By default it does not enable zoom pinch, but if you go to the menu and tapDesktop Site, enable pinch zoom. I want to ...
0
votes
0answers
14 views

Android webview pauses video when in background

I'm making a webview app that plays videos in html5 (using videojs, if that matters) and I want the videos to keep playing when the user leaves the app (background). I tried looking for help but all I ...
0
votes
0answers
15 views

How to check if chrome is not enabled on user's device

I am using Custom Tabs to launch web view. The issue is that, if i disable chrome it opens the URL in an activity, which does not have any button in it. I want to launch Web Browser, if chrome is ...
0
votes
0answers
7 views

How to create extra zoom in a native web view

I have created a native web view and added these settings to it. webView.getSettings().setJavaScriptEnabled(true); webView.getSettings().setDomStorageEnabled(true); webView.getSettings()....
0
votes
0answers
13 views

Custom Tabs keeps opening web browser

I am trying to load a web url by using Custom Tabs. I am using following version of custom tabs implementation 'com.android.support:customtabs:27.1.1' The issue is that it keeps opening chrome ...
0
votes
1answer
19 views

Webview does not take picture from gallery or camera

I have a webview in which I am showing some website. The website unable to take images from gallery or camera. I also made this app in iOS in iOS the website inside webview easily take images from the ...
0
votes
1answer
22 views

Open External Links inside Webview

I want to open a webview with POST data. So i am doing this: webView = (WebView) findViewById(R.id.dashboard); String url = "http://www.example.test"; String postData = "json=" + JSON; webView....
1
vote
1answer
49 views

html5 video tag displays blank screen with only sound

i have created webview and updated android:hardwareAccelerated="true" in order to run embedded video tag but; only sound is running without video mWebview = findViewById(R.id.webView); ...
0
votes
1answer
12 views

is it possible to run selenium tests inside webview?

I want to run tests on my application. I know I can use selenium with chrome driver on my ubuntu machine. I wanted to know is it possible to do the same but on a webview in an android app? I mean in ...
1
vote
0answers
42 views

How to pass json data in xamarin forms web view android side

I am using xamarin forms webview and want to pass username and password json body with url like below. I Implement Hybrid webview in xamarin forms My PCL Code: public class HybridWebView : WebView ...
-1
votes
0answers
16 views

setWebChromeClient in SystemWebView cant override in Android Webview

I updated to 7.1.1 And its not working Because of CordovaWebView is now Interface not a Class, we cant use it so, <org.apache.cordova.CordovaWebView android:id="@+id/tutorialView" android:...
0
votes
0answers
21 views

What's the duration of webview cache

In my app, I have a webview with the following setting. WebSettings settings = webView.getSettings(); settings.setJavaScriptEnabled(true); settings.setDatabaseEnabled(true); settings....
1
vote
0answers
27 views

“Invalid CORS request” in Webview used in React Native

I have posted a similar question before (didn't get any replies), but since I have done more tests, I am posting again with the new information. I am trying to render WebView in a React Native ...
2
votes
0answers
239 views

Android WebView not finding TracingController

I'm trying to write a simple app with a WebView, but when I create a WebView I get an error: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/webkit/TracingController; I searched and ...
0
votes
0answers
68 views

WebView with blank white screen

i have a webview inside DialogFragment which show docs and PDF using http://drive.google.com/viewerng/viewer?embedded=true&url it works for few attempt but if user try to open and close Dialog ...
0
votes
1answer
33 views

Store website data in android device(SQLite,Realm or else)?

I am creating an android application, which i have load URL in to webView. What exactly i want I want to store website data which entered by users and store it in to Database.
0
votes
1answer
25 views

Open a link in the android browser (WebView)

I recently implemented the shouldInterceptRequest method to detect when the link "http://sitemercado.com.br/valida" clicked to open it in the android browser instead of opening internally in the ...
0
votes
0answers
14 views

Load local HTML file having javaScript and links to other HTML files in as android WebView

I am trying to load a HTML file in a webview which contains javaScript code and has links to other HTML files. But it is not working and nothing is shown in the webview. The code looks like- WebView ...
0
votes
0answers
16 views

Kivy webview Change url

I use codes on this link(https://github.com/kivy/kivy/wiki/Android-native-embedded-browser) for native webview inside kivy. But when I want to change html file my codes can't load new html my app stay ...
0
votes
0answers
19 views

WebView filter URL to open in browser

My webview opens all links internally without using the browser, but I need only the link "http://sitemercado.com.br/valida" to open in the browser basically I need a filter so that when this url is ...
3
votes
1answer
49 views

WebView Youtube Fullscreen mode [duplicate]

I have my WebView where I go to Youtube and if the user touch on Fullscreen button I want to rotate my device to landscape mode. Have anyone faced with this? Thanx all in advance fir any help!
0
votes
0answers
21 views

WebView doesn't fit screen in landscape mode [Android Oreo]

I've a WebView in my app for displaying a site. Issue is, WebView doesn't fit the full screen when in landscape mode but works fine in normal portrait mode. I later added this code mWebView....
0
votes
1answer
31 views

onDownloadStart parameters of webview not set? How to retrieve filename?

I have javascript code where I use anchor tag's download attribute to set filename. Following is my code snippet: const fileReader = new FileReader(); fileReader.onload = () => { const link = <...