Questions tagged [android-websettings]

Use this tag for questions regarding managing settings state for a WebView on the Android OS

142 questions
0
votes
1 answer

Find language of a site loaded in my webview

I have a webview where external url will be launched and loaded in the webview. So, I want to find what language the webpage is? is it possible in android webview?
Happy
  • 1,031
  • 10
  • 26
0
votes
0 answers

Android Webview taking time to input text for large form data

I am doing webview application for Android. The application contain form which have doctor data row wise with input text needs to be enter for each doctor. When i have less data from the sqlite db from android i.e 20 to 50 rows. When i enter from…
0
votes
1 answer

Changing Tab doesn't update the webview state in Android

I have multiple tabs in my Activity. Each tab opens a specific URL of an e-commerce website. When I add an item to the cart from 1st tab and change the tab to 2nd tab, the item added is not updated in the 2nd tab. What should I do? In the desktop…
akkk
  • 1,457
  • 4
  • 23
  • 41
0
votes
1 answer

Phone screen turns white after clicking back from Android Webview

I am using Android Webview to load some web content into my app. The loading page has some Javascript content, so I have to set the ' webSettings.setJavaScriptEnabled(true)" as true, the problem is when i click back from the webpage whole phone…
0
votes
0 answers

Android WebView 'Browswer is out of date or some of its features are disabled'

I am trying to load a Website in my app using WebView. Here's my webView set webView.getSettings().setJavaScriptEnabled(true); webView.getSettings().setAppCacheEnabled(true); webView.getSettings().setUserAgentString("Mozilla/5.0 (X11; U;…
Ashik
  • 1,204
  • 12
  • 22
0
votes
2 answers

Android: keep data of webview for next use like coockies

i put a webview in an activity . the webview loads TelegramWeb's page. when i login to the telegram account it works fine. but when i rotate screen or reopen the app it forgets all data and needs relogin to telegram account. so i need to save some…
Sajjad.HS
  • 381
  • 2
  • 8
  • 19
0
votes
2 answers

Why loading webview sometimes works and sometimes finishes fast?

I have an android app using webview. I show my entire website. My problem is when I click on buttons on a navigation to load a page sometimes they open by first touch and sometimes nothing works. I have to touch the button 2 , 3 or more times and…
Saeid
  • 448
  • 1
  • 7
  • 19
0
votes
1 answer

How do I pass a parameter from javascript into webview (java) in android?

I have the following javascript: public String jscode() { String myString = "javascript:function myscript() {" + " var _$b = window._$b= { version: \"1.0\"};" + " _$b.navigate = function(url, title) {" + " rpc.exec(" +//…
0
votes
1 answer

How do i inject a complicated javascript self running function into a webview in android?

I am trying to inject a javascript function into my webview running a server url "www.myserver.com". However, I am unable to do so. I tried several ways but didn't succeed. I tried setting up js alerts, which do not pop up upon reading the js file.…
0
votes
0 answers

Why applying transformation to webView dislocate touch events inside webView?

I override onDraw() method of WebView and apply only translate() to canvas(then I need to apply skew and scale methods as well.) As a result the WebView is translated,while the touch events are dislocated as much as the WebView is translated.for…
0
votes
3 answers

How do I refresh the contents of a webview everytime the app is launched?

I am trying to refresh the contents of my webview everytime someone launches my app.Say someone goes to a different page within the app or goes to background and then relaunches the app, i want the contents of my webview to refresh/reload based on…
user2386226
0
votes
2 answers

WebView not reflecting changes on server until clearing data

I found an interesting bug that I can not replicate, but think someone here could provide some insight. I have an activity that for now is partially native, partially web-based. By that I mean one element is simply a WebView until implementation on…
Tom McFarlin
  • 829
  • 1
  • 9
  • 24
0
votes
0 answers

Android Lollipop: Webview .svg file support

I am working on application which loads data from server in webview. This data contains icons which are coming from .svg file. Problem is icons are rendering properly lower versions of Android, but in android lollipop instead of icon it shows random…
Sandip Jadhav
  • 7,377
  • 8
  • 44
  • 76
0
votes
2 answers

Android webview content sometimes not fit the width

In my application , first I have some html code as string , then I load it into the webview like this: WebView content = (WebView) rootView.findViewById(R.id.content); StringBuilder sb = new StringBuilder(); sb.append("
0
votes
1 answer

Loading large TXT file in WebView in Android

I'm developing app which has to load and preview TXT files. For this purpose I'm decided to use WebView instead of TextView as those TXT files. I want to make preview more than 50000 lines. So, I thought it would be easier to use WebView. Also, I…