Use this tag for questions regarding managing settings state for a WebView on the Android OS
Questions tagged [android-websettings]
142 questions
2
votes
0 answers
Google Docs PDF's Pagging and Zooming Controls is not visible in android webview
I am using Google Docs to show PDF in Web view , the PDF is open properly in android web view but controls of Google Docs is not visible on top of PDF
This is my code .
private WebView mWebView;
@SuppressLint("NewApi")
@Override
protected void…

omi
- 21
- 3
2
votes
1 answer
Android webview : Url not completely loaded in webview whereas in chrome it's OK
I tried to load an url in a webview but this url is not completely loaded :
Whereas, in Chrome app, the url is successfully loaded :
Here is the code that i used :
mWebView.setWebViewClient(new myWebClient());
…

wawanopoulos
- 9,614
- 31
- 111
- 166
2
votes
1 answer
WebView doesnt wrap text correctly (pictures inside)
I am having trouble with webview wrapping my html incorrectly.
WebView webView = new WebView(getActivity());
WebSettings settings =…

urSus
- 12,492
- 12
- 69
- 89
2
votes
1 answer
android webview video is not playing full screen mode
i have to develop one android application.here the webvicw video is playing well..but if i have to click full screen mode means the video is crashes...how can i resolve these error...
How can i play video on full screen mode ??? or how can i play…

user2218667
- 607
- 6
- 25
- 46
2
votes
4 answers
How to load an img tag in webView in Android?
I want to load the following HTML code in the Android webview.
where…


Qadir Hussain
- 8,721
- 13
- 89
- 124
2
votes
0 answers
WebView not showing video on Android 2.3.7
I try to play dailymotion.com video in Android WebView.
On Android 4.0.1 it runs great when I set android:hardwareAccelerated="true" in the manifest file.
When I use it on Android 2.3.7 the video freezes on the first frame and I can see the…

Asaf Pinhassi
- 15,177
- 12
- 106
- 130
2
votes
1 answer
Loading image before webview loading?
I am working on web app which i am using web view to load that directly from website url. At the time of loading that url in android webview it is loading very slowly that it is taking nearly 5 -7 seconds for loading,in the mean while white screen…

code_finder
- 1,370
- 2
- 21
- 39
2
votes
1 answer
Android : Inject JavaScript before loading the URL in webview
I'm developing one application in which a URL is loaded in webview of the app. Through JavaScript I'm slicing out the header and footer of the webpage and showing content in the webview. My problem is that, it takes some time to slice out the header…

Anupam
- 3,742
- 18
- 55
- 87
2
votes
1 answer
Disabling email,number detection in android WebView
I'm developing an app with phonegap+sencha touch2+android.
I've one panel showing various content that contains emails, some numbers in textual form. As it's a WebView when I tap on number, andorids default MailCompose Activity starts, when I tap…

SachinGutte
- 6,947
- 5
- 35
- 58
1
vote
1 answer
Android - fit page in WebView using pre-Eclair (2.1) version of OS
I'm trying to load page into WebView control with best possible fit and ability to retain it when switching from portrait to landscape.
This answer provides the acceptable solution however it only work in OS v2.1 and up. What would be equivalent to…

Bostone
- 36,858
- 39
- 167
- 227
1
vote
1 answer
How to make webview work like Google Chrome for Facebook Links
I am creating an Android app, in which i am navigating Facebook Urls in webview.
Example Link: https://fb.watch/dk1YiCATL3/
If user is logged in via webview
Webview keeps converting short links like example link to
https://m.facebook.com/watch/?v=…

Nayab
- 112
- 14
1
vote
1 answer
how to maintain specific version for embedded web view across different devices?
We have embedded web view using webkit in our app.
implementation 'androidx.browser:browser:1.3.0'
But when we install this app in different devices (mobile, android boxes, android tv's) the webview versions are showing different in different…

Vamsi Krishna
- 353
- 3
- 12
1
vote
0 answers
Android webview - shouldInterceptRequest is not called for the first time
I have a very complex bug: in my application, I use in webview that display local images. until version '76.0.3809.111' of the webview, everything was work perfectly but from this version when I'm trying to display those images I get "Failed to load…

gil cohen
- 333
- 2
- 8
- 21
1
vote
1 answer
Saving WebView and showing it while offline?
I need to cache a WebView in a way that it would use cache if there is no internet, and when there is internet it will use the online page. Since my class with the WebView does loadUrl() in the onCreateView, it reloads it every time so I need cache…

Andrey Starenky
- 27
- 2
- 7
1
vote
0 answers
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.setAppCacheEnabled(true);
…

Elye
- 53,639
- 54
- 212
- 474