Questions tagged [android-websettings]

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

142 questions
1
vote
1 answer

How to implement shouldInterceptRequest in Android 4.4.4 or previous versions

How can I implement the following WebClient method in in Android 4.4.4 or previous versions: shouldInterceptRequest(WebView view, WebResourceRequest request) N.B : I need this method with the parameter…
TH3Under
  • 11
  • 2
1
vote
0 answers

All WebViews somehow shares visited history

I have multiple activities where I show different instances of WebViews. Lets say I visit www.stackoverflow.com in one activity. If I see a link that points to this adress, it will be shown in purple (showing that it has been visited). Now, I have…
1
vote
1 answer

Unable to see images inside posts in Android webview

I am trying to load a blog powered by Wordpress on Android WebView. While the content and the 'title' images are getting displayed, the images that are inside the posts (I mean opening a post from the displayed webpage) aren't getting displayed (all…
M J Learner
  • 171
  • 2
  • 11
1
vote
1 answer

Android webview display mess

I developing a browser using webview to load url,mostly showing perfect. but some unexpected.some titles display at wrong place. like below. My browser Other Browser as you can see.on other browser.it running perfectly.so there must something i…
floatingmuseum
  • 958
  • 8
  • 12
1
vote
1 answer

I can't use Intent at Activity

when I click the marker on Google Map, I want it to enter another Activity, but when I got the result from javascript, it can't do Intent WebSettings webSetting =…
Jeff Liu
  • 119
  • 1
  • 1
  • 7
1
vote
0 answers

unable to open website in webview

I want to open the following link in WebView https://hrms.onlinesbi.com/irj/portal I am using following settings on webview to do that WebSettings webSettings = mBrowserView.getSettings(); webSettings.setJavaScriptEnabled(true); …
Nikhil
  • 1,023
  • 17
  • 35
1
vote
2 answers

My webview messes up in jelly bean and kitkat version ,but works fine in lollipop and above. How do I fix it for jelly bean and kitkat?

Here's my code for that: public void mywebview(){ try { webview.setBackgroundColor(0); webview.getSettings().setJavaScriptEnabled(true); webview.addJavascriptInterface(new MyJavaScriptInterface(), "MYOBJECT"); …
1
vote
2 answers

Is there GCM(Google Cloud Messaging) have any advantage over web service communication in android programming

I like to write a program in android that sent notification from web to android application. I hear that there are two types of communication is possible in Web to android. One is Using GCM and (Google Cloud Messaging) and other is using Web…
1
vote
1 answer

How do I write a webview to automatically sign into my yahoo account?

I am writing a test webview app, in which I intend to open my yahoo mail the moment I launch the app view. It will be a webview, where I want to hardcode my username and password. I know yahoo uses get method instead of post. Is there a way I can…
1
vote
2 answers

WebViewClient.shouldOverrideUrlLoading giving invalid url

I'm setting WebView's content as; String displayBodyText = "Ammar" webView.loadData(displayBodyText , "text/html", "utf-8"); And set the WebViewClient…
Ammar
  • 1,811
  • 5
  • 26
  • 60
1
vote
2 answers

Android 4.3 WebView will not load url with mp4

I am trying to load a webpage that has an mp4 video on it. It displays a blank screen for android 4.3 (JellyBean) but it works for all versions after that. Any idea why this is? Below is my code public class VideoSample extends ActionBarActivity { …
DMC
  • 1,184
  • 5
  • 21
  • 50
1
vote
1 answer

How can I get entered text from Android WebView and use it in my code

I have a WebView that has a textfield in it, in which the user enters some text. On a button press I want to extract this text from the WebView and store it in a String so that I can use it later in some other native code. Note: This text entry must…
user3634770
  • 231
  • 1
  • 3
  • 7
1
vote
1 answer

android-webview not moving/panning/scrolling right and left

I've a webview that I want to load a website and when I load it, it doesn't go right and left. It just goes up/down. (pan/scroll actions) This is the code: WebView wb=(WebView)findViewById(R.id.webView1); WebSettings settings =…
Navid Abutorab
  • 1,667
  • 7
  • 31
  • 58
1
vote
0 answers

Web View not rendering the page

i have a web site which i want to view on my web view. I have created a sample application of web view to load the url of the web site. This is my code of the activitiy. With this code i am to load other video specific web sites like youtube. From…
saurav
  • 5,388
  • 10
  • 56
  • 101
1
vote
2 answers

Android HTML button onclick event

I have images displaying in Local HTML pages and have one button for click event. When click this button i need to call another activity. It's working. But the issue is after going another then come back to HTML pages the images are not displaying…