FAQ Database Discussion Community


Google Plus iOS GPGManager error “Mismatched Authentication”

ios,objective-c,webview,unity3d,google-plus
I have a Unity app that includes a button to sign into Google Plus. In the iOS version of the app I've had to override the default behaviour of the Google Plus SDK to prevent it switching to Safari to sign in and to use a WebView instead. This is...

childview in scrollview click delay after scroll

android,webview,scrollview
I have a webview inside a scrollview with javascript listening click event. It is no problem to listen it in normal case but cannot be listen just after scroll. I need to have a first click to stop the scroll and click one or two times to trigger the click...

Why won't this work at changing the URL of a web View (resolved but it is now opening a new browser window instead of keeping it in the app???) [closed]

android,url,webview
I am making a portfolio and I want it to change to a new URL to load after you click Next or the nextButton (mNextButton variable). this is the code for the activity that has the webview on it. package com.dredaydesigns.dredaycreativeportfolio; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import...

Crosswalk - Inflating class & Cie

android,webview,crosswalk-runtime
I'm currently working with Crosswalk ( previously on Cordova ). But I encounter a problem : when i'm creating just a simple XWalkView, nothing works.. I mean, I followed all guides, try multiples ways and nothing . I'm working with CrossWalk 12.41.296.9 ARM. That way: public class MainActivity extends Activity...

Unable to Full Screen Youtube Video Inside Custom Webview

android,webview,youtube
Update I have updated my question to hide confidential code. If still there is some confusion pls msg me in comments. Question I have written an custom Webview for playing youtube video embedded in my website to go full Screen. But its still not Working.. . kindly Help public class...

Android Webview: console is not defined

javascript,android,webview,android-webview
I'm trying to open a html with some javascripts in a Android Webview and getting the following error after implements onConsoleMessage of my WebChromeClient: Uncaught ReferenceError: console is not defined -- From line 10 of file:///storage/sdcard0/TargetApp/e184bae3-5824-4e23-a26e-820ce6d32aa2/pres/fce4da510de8431bB3eeD5bdbd1c695d/fce4da510de8431bB3eeD5bdbd1c695d/html/js/target/util_Q_3bb82a6eabd3339d91ca15cb4fd6685c.js Follows the line 10 of my file: console = console ? console : {...

How to display an animated gif image in android with click functionality?

android,webview,animated-gif
Is there any way to show the animated gif image in any control that should also display normal jpg,png formats, The image source i will get from the server. I have tried with the Webview but i have a problem of scrolling, The image should fit to the size of...

Google Maps URLs showing up blank in Xamarin webview on Android

android,ios,webview,xamarin,monodroid
I'm not trying to use the Google Maps API, just trying to display a standard Google Map URL in a webview inside of my app. For example - https://www.google.com/maps/place/Disneyland+Park,+1313+Disneyland+Dr,+Anaheim,+CA+92802/@33.812092,-117.918974,17z/data=!4m2!3m1!1s0x80dcd7d12b3b5e6b:0x2ef62f8418225cfa When I load that URL, I just get a blank page (works properly on iOS). I've been researching for a couple...

WebView clicking on link results in about:blank

java,android,webview
I have a WebView in my application and I do a search on google. When I click a link there, let's say stackoverflow.com, it redirects me to a white page and the url is about:blank (new tab?). I already tried this webview.setWebViewClient(new WebViewClient() { public boolean shouldOverrideUrlLoading(WebView view, String url)...

inject CSS to a site with webview in android

android,css,webview,webkit
For example I want to change the background-color of www.google.comto red. I have used webview, and my style.cssfile is in assest folder. I want to inject this style.css file to www.google.com. What is wrong with my codes? Please write the correct codes for me. Thanks. My MainActitviy.java file : package...

get value of webWiev.getUrl() in WebResourceResponse shouldInterceptRequest(WebView view, String url)

android,webview,android-webview
I have function like this: public WebResourceResponse shouldInterceptRequest(WebView view, String url) { if (url.contains("images/srpr/logo11w.png")){ return new WebResourceResponse("text/plain", "utf-8", new ByteArrayInputStream("".getBytes())); } return super.shouldInterceptRequest(view, url); } And it is working, fine. I want to add one check by current webView url and intercept request only if its on specific page. And...

How to preserve loaded javascript content in a WebView when loading a new page?

javascript,cocoa,webview,state
In a WebView I can load javascript code by running view.stringByEvaluatingJavaScriptFromString or loading the code directly in the JS context you can retrieve via view.mainFrame.javaScriptContext. However, when I navigate to a new URL (be it in the WebView.mainFrame or in Javascript, e.g. by setting window.location) all my javascript code is...

Passing token to angular app in IOS webview

javascript,angularjs,webview
I am trying to figure out how to handle passing a token to an angular web app running in a webview. In the IOS app when the user clicks a button it opens the webview loading the angular app. To populate the angular app with data we need to get...

Android set margins for control inside webview doesn't work

android,layout,webview
I have a webview, a functionality that add a new button to this webview, the problem here is I can't not set the margins to this button and it always show on the top, left of webview. Or any solutions for my situation: I want to add a control at...

Intercept dialog from and read the contents

webview,dialog,dart,google-chrome-app
I use this code to intercept a dialog from a webview but I can not see the content or interact with it: Element webview= querySelector("#webview"); Map<String,String> map=new Map(); map["src"]=urlWebView+user; webview.attributes.addAll(map); querySelector("#webview_cont").style.visibility="visible"; window.addEventListener("dialog",(Event e){ //Use window or webview returns the same result e.preventDefault(); ... //What should I do here ?? }...

Parse Jason to webview Android

android,webview
I retrieve data from mysql by php and save it as String read= new BufferedReader(new InputStreamReader(s,"iso-8859-1"),8); String line=null; while ((line=read.readLine()) !=null) { text+=line+"\n"; } output is [{"DATE_OF_TEXT":"2015-05-06","total_rate_FORuser":"9.90000"}, {"DATE_OF_TEXT":"2015-05-30","total_rate_FORuser":"5.10000"}] How parse JSON to my Javascript file in webview ?...

I can't query in WebView context

css,webview,console,calabash,calabash-android
I'm facing a problem right now, and I need some help. I have a native app that displays in some point a webView, the class for this webView is called: org.xwalk.core.XWalkView. I'm developing in Windows and running calabash-android console, but when I use any of this commands: query("webView css:'' ")...

Windows Phone 8.1 - get WebView Height [duplicate]

webview,windows-phone-8.1,win-universal-app
This question already has an answer here: Get WebView's content height - Windows Phone 8.1 1 answer I want to add a WebView control to my page with its height to be has the HTML content's length. The deafult behavior of the control is to stretch according to the...

Security of html and javascript files in Android and iOS Webview

javascript,android,ios,security,webview
I have an app in iOS and Android which mostly run on webview and all the logic happens there. The problem is I don't want my html and javascript files on the server to be trackable and I want to protect their code. I wanted to ask if there's any...

Android WebView only redraws left side of page

android,webview
I'm replacing my original question because I found more info that I think makes the issue much clearer. My XML is simple now, just a WebView that fills entire activity: <?xml version="1.0" encoding="utf-8"?> <WebView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/Web" android:layout_width="fill_parent" android:layout_height="fill_parent"> </WebView> My full Java code is very simple now too: public class...

Get Progress of UIWebView

ios,swift,webview,progress
Is there a way to get the percentage of the page loaded from a UIWebViewin Swift with from a standard @IBOutlet? @IBOutlet var webView: UIWebView!; ...

Website dont work correctly on WebView when touching on item or menu in website

android,webview
Website dont work correctly on WebView when touching on item or menu in website I read the other Solutions ,,, and it,s about phonegap and native app I need solution For Android Studio My device is Galaxy 05-26 10:57:55.543 E/webcoreglue﹕ Should not happen: no rect-based-test nodes found 05-26 10:57:55.633 V/WebViewInputDispatcher﹕...

Android webview.loadData() does not display tabs

android,css,webview
I am new to css and android. I am trying to load a gist in a webview but the code's indentation is not coming when i am using webview.loadData(content, "text/html", "utf-8"); It is working well when i use webview.loadUrl(url); but I want the previous. Am I missing something big here?...

Alert dialog from was blocked

javascript,webview,dart,google-chrome-app
Dart doesn't show the alert dialog when I use a webview and show this error: : An alert dialog was blocked. (extensions::webViewEvents:225) : A confirm dialog was blocked. (extensions::webViewEvents:225) Does anyone know how to bypass the problem or how to catch the error? Thanks. Sorry for my bad English. Edit...

What are differnce between webview and web services in Android Platform

android,web-services,webview
I am newbie in android,I am learning from various web site that Existing Web applications are in a need of creating mobile applications to show their presence in android platform. Through WebView,we can show existing Web applications to link with the specify url. And through WebService,we can also show existing...

Hide Toolbar with CoordinationLayout and Webview not working

android,webview,toolbar
I'm trying to hide the Toolbar when scrolling the WebView, with the new CordinationLayout, but it's not working. Is there any way to do it? This is my xml: <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.themobilebakery.isus.gui.WebViewActivity"> <WebView...

Is default behavior of Android's WebView changed to open internally all links?

android,webview
I noticed that with the last update of Google System WebView, all the links in my WebViews are opened in the view itself. But according to the documentation from google: public boolean shouldOverrideUrlLoading (WebView view, String url) Added in API level 1 Give the host application a chance to take...

android webview with russian text formated erreur

android,webview
in my android application I have a webView but when I made this code: webViewopresentation.loadData("<html><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" /><body> <p><span style=\"color:#FF0000\">Привет, как дела?</span></p> </body></html>", "text/html", "UTF-8"); it shows me this text. Привет, как дела? What is the problem please?...

Override style of webpage in webview - android

android,webview,screen-scraping
I am trying to override an existing style for a webpage in a webview. The following webViewClient has not effect on the webpage. public class WebClient extends WebViewClient { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { return super.shouldOverrideUrlLoading(view, url); } @Override public void onPageFinished(WebView view, String url) { view.loadUrl("javascript:document.getElementsByClassName('main-container').style.paddingTop...

Sencha touch lib not working on Chrome 43

android,webview,sencha-touch
I have built hybrid app with Sencha touch 2.3 and till recent it was working fine but i recently updated the Android System Webview via Play Store (i have moto g running android 5.0.1) and now i am encountering various bugs in UI as follows : The selectfield picker does...

Inject javascript file to my site with webview in android

javascript,android,webview,webkit
I want to inject javascript file to my site. My site is a simple html page that is on server. I have injected css file. (with Manish's help) So I can manage my simple html site with CSS now. But I want to manage it with javascript too. My jscript.js...

WebView.draw() not properly working on latest Android System WebView Update

android,webview,bitmap
I'm currently using WebView.draw() to take a screenshot of the entire WebView and save it into a Bitmap (based off of this solution). It has worked perfectly up until now. I was recently testing this functionality on a Nexus 5 (please note that on the Nexus 5 the WebView in...

How to access Windows Phone folders from a Gmail Wrapper App

windows,webview,windows-runtime,gmail,phone
I have created a Gmail Wrapper Windows Phone 8.1 (WinRT) application using Webview. When I try to compose an Email and try to add attachments, file picker is not displayed and nothing happens. However when I use the Internet Explorer and login to the same Gmail account and click on...

Check for input in webview

android,webview
I have an app that has a web-view which has a basic web-form that has a few fields and a submit button. I would like to figure out in my app if the form has any input in any of the fields. I cannot change the form from the server...

WebView setDefaultZoom deprecated

android,webview
Here is the code for setting the default zoom in webview mWebView.getSettings().setDefaultZoom(WebSettings.ZoomDensity.FAR); to be working but old. The setDefaultZoomvalue is deprecated, anyone know what the new code is? Sorry if I'm writing in unprofessional terms and with poor English. As always, Thanks in advance :) Regards Ole...

How can i center the content of a WebView?

java,android,html,css,webview
A part of my app loads an image into a WebView from a URL. Using the following settings for the WebView: myWebView.getSettings().setBuiltInZoomControls(true); myWebView.getSettings().setDisplayZoomControls(false); myWebView.getSettings().setLoadWithOverviewMode(true); myWebView.getSettings().setUseWideViewPort(true); Relevant part from the layout XML: <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/transparent" > <WebView...

android, WebView application/pdf ~ Blank Display

android,pdf,webview
I'm attempting to display a PDF using WebView on android. The PDF data is downloaded via an API, then once encapsulated in the intent: WebView webView = (WebView) findViewById(R.id.webView); Log.d("DEV", bIntent.getString("Data")); webView.loadData(bIntent.getString("Data"), "application/pdf", "UTF-8"); I have the exact same setup, except implemented on iOS which is working fine. The LogCat...

Changing one WebView from another WebView in JavaFX

webview,javafx,fxml,fxmlloader
I currently have two WebViews(say leftWebView and rightWebView) inside a horizontal SplitPane which is embedded inside the Anchor Pane. Each WebView has a JavaScript (creating a rectangle with different colors). Now what I want to do is that on clicking one rectangle, I would like to change the other WebView....

'Access is denied' error for HTTP get request in Adobe Air App using IE

angularjs,internet-explorer,webview,air,xmlhttprequest
I have an angularjs application that runs in a webview that is meant for a Windows Surface device (I am also using IE 11 instead of Adobe AIR webkit). I want to load a local XML file from the app and I am using $http.get() for that. The request is...

How to load the last url you have opened in a webview

android,webview
I have: package my.domain.app; import android.app.Activity; import android.os.Bundle; import android.content.SharedPreferences; import android.webkit.*; public class MainActivity extends Activity { private WebView webView; private SharedPreferences sPref; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.webapp); } void someMethod() { WebView webView = (WebView) findViewById(R.id.webView); webView.setWebViewClient(new MyWebViewClient()); String url; if...

WKWebView didn't finish loading, when didFinishNavigation is called - Bug in WKWebView?

ios,objective-c,swift,webview
Goal: To take a screenshot of WKWebView after the website finished loading Method employed: Defined a WKWebView var in UIViewController Created an extension method called screen capture() that takes image of WKWebView Made my UIViewController to implement WKNavigationDelegate Set the wkwebview.navigationDelegate = self ( in the UIViewController init) Implemented the...

Webview events not fired

ios,webview,titanium,titanium-alloy
I am using the ds.slideMenu widget, that has the following view: <Alloy> <View id="containerview"> <View id="leftMenu"> <TableView id="leftTableView" /> </View> <View id="movableview"> <View id="shadowview"> <View id="navview"> <Button id="leftButton" /> </View> <View id="contentview" /> </View> </View> </View> </Alloy> and the view to display the webview is the following one: <Alloy> <View...

Video access with android AdvancedWebView

android,webview,android-webview
Is there a way to give my android app camera access permission with AdvancedWebView? It is possible with native webview, but the native do not allow file upload through < input type="file" >, so now I have the file upload working, but no camera. Main code: public class MainActivity extends...

MathJax to view mathMl in WebView of android

android,webview,mathjax,mathml
For those who want complete solution for MathMl in android: Advantages: Best in rendering Mathml in android webview Online MathJax doesn't require any space in your app Offline Mathjax is also very light weighted I will prefer online Mathjax as its just few lines code which will render any mathml...

Xamarin iOS webview Zoom is not working

ios,webview,xamarin
When I add DraggingStarted or any other ScrollView events to webview, then Zooming got disabled. string urlAddress = "http://google.com"; NSUrl url = NSUrl.FromString(urlAddress); //URL Requst Object NSUrlRequest requestObj = NSUrlRequest.FromUrl(url); webview.LoadRequest (requestObj); //Once added following line zoom is stopped webview.ScrollView.DraggingStarted += (object sender, EventArgs e) => {}; I have tried...

How to identify web actions in JavaFX webview?

javascript,webview,javafx
I need to catch the actions like clicks, drag, right-click, double click etc, that are done by the user on JavaFX web view. How to achieve it?

WebResourceResponse cause ClassNotFoundException ignoring @TargetApi clause

java,android,caching,service,webview
I have a simple piece of code: @TargetApi(Build.VERSION_CODES.HONEYCOMB) @Override public WebResourceResponse shouldInterceptRequest(WebView view, String url) { if ( Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB ) return null; ... try { File input = new File(fullPathToCachedFile); if ( input.exists() == false ) return null; final BufferedInputStream stream = new BufferedInputStream(new FileInputStream(input)); return new WebResourceResponse(mimeType,...

Android webview append css to existing site

android,webview
I am using the webview as following WebView webView = (WebView) this.findViewById(R.id.webView); webView.getSettings().setJavaScriptEnabled(true); webView.loadUrl("https://m.facebook.com"); It loads the page fine. Now I am trying to add a line head section of the page before it renders in the web view. e.g. <style>.test{color:red}</style> is it possible to add. if yes then how??...

Access denied using local storage in Android WebView

javascript,android,webview
I've got an Android webview, that I believe has everything required to access and use localStorage, however, I'm seeing an "Access denied" error in the console when trying to use local storage. Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. Can anyone...

ner::ERR_CACHE_MISS Andorid 4.4 WebView porblem

android,caching,webview
I m trying to make a simple web app that loads a website into a webview. This is the code: public class Webviewser extends ActionBarActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_webview); String url = "http://google.com"; WebView view = (WebView)this.findViewById(R.id.webView); view.getSettings().setJavaScriptEnabled(true); view.loadUrl(url); } } I have read in...

Android WebView loadUrl JavaScript not working API <=18 (but works in API >=19)

javascript,android,webview
QUESTION: What do I have to do to make webView.loadUrl(javaScript) work in API 18 or lower (in comparison to API 19 or higher)? DESCRIPTION OF PROBLEM: I am using WebView to make a chat. First I load the HTML like so: webView.loadUrl(url); Then I use loadUrl again to send in...

Update the parent view when webView finishes on Android

android,webview,android-progressbar
I have a web view which takes a bit of time to load, so I have a progress indicator which should show until the webView is ready. However, what is the best way to do this? I have: webView.setWebViewClient(new WebViewClient() { public void onPageFinished(WebView view, String url) { //mListener.finishedLoadingHtml(); ProgressBar...

Resize ALL images in WebView with Text Autosizing

image,webview,resize,width
I have a webview set up as: WebView wv = (WebView) findViewById(R.id.display_post_activity_content); wv.getSettings().setLoadWithOverviewMode(true); wv.getSettings().setUseWideViewPort(true); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { wv.getSettings().setLayoutAlgorithm(WebSettings.LayoutAlgorithm.TEXT_AUTOSIZING); } else { wv.getSettings().setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NORMAL); } wv.loadDataWithBaseURL("", content, "text/html", "UTF-8", ""); content is static HTML, with some inline CSS. No...

Responsive website on different android devices like tablets and mobiles with a clear image quality?

android,webview
I am using webview to display website URL. Actually, that website contains text and images. When I open my app, automatically url get accessed and can get into that website directly. So user can be able to click anything which is in home screen (On website) to see their products....

What is the default scale value of the WebView in Android?

android,webview
The Android doc says that getScale() method was deprecated. I have implemented onScaleChanged(WebView, float, float) to get the new scale, but this method is triggered only when the scale is changed. So, what is the default scale value for the webview? From the getScale() method, it is 2.0f, but is...

Windows Phone: how to handle an event from a web page in a WebView?

events,webview,event-handling,windows-phone,handler
Which callback/delegate is the one to intercept the event of a user clicking on a link within a WebView? I'd want that URL. I just need to know if it is possible and how should I do in some way.

White background when rotating a webview

android,webview,rotation
I am trying to "play" with a webView. I slide it and rotate it, and it works fine. The problem is that when I rotate it, I get a ugly white rectangle in the background emcompassing the webview. I tried to change the background color but it's still there, and...

Android webview javascript not working on API 18 or higher

javascript,android,webview,webviewclient
I want to display a web site in webview with manupulating some DOM element. I mean, I want to remove a special div element or replace it with something. For this purpose I did something like this: For replaceing something I use this model document.getElementById("demo").innerHTML = "Hello World!"; I apply...

Android Webview: Mailto Unable to Implement

android,webview
I am Unable to implement mailto link functionality in the custom webview given below. Pls Help me mix these two codes I Am relatively new to android. I don't know how to implement the mailto Code. Solution on stackoverflow: Mailto Code @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { if(url.startsWith("mailto:")){...

WebView tel: open chooser telephone or sms

java,android,webview,sms,telephony
In my shouldOverrideUrlLoading of my WebView I do the following to have some action when a tel: link is clicked: Intent tel = new Intent(Intent.ACTION_DIAL, Uri.parse(url)); startActivity( tel ); My problem is that it only starts the telephone app (which seems to be the normal behaviour regarding tel: links). I...

webView hiding content in swift

html,ios,css,webview
I've created a html template which i've said to 100% width, but it still seem to hide content at right side of the screen. The template is suppose to be embedded into a ios application using a webView. Below you can see how it looks: <!DOCTYPE html> <html lang="en"> <head>...

Why My Android Webview Is So Slow

android,webview
I tried some ways to solve the speed problem but the site is loading very very slowly on webview even it opens in 3 seconds in Chrome. What I try is, adding these two lines on my code; mWebview.getSettings().setRenderPriority(WebSettings.RenderPriority.HIGH); mWebview.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE); and adding android:hardwareAccelerated="true" to my Manifest file as I found...

Android webview in viewpager

android,html,webview
Got a viewpager with webview. Webview loads an url . Loaded url might contain a slideshow . Problem slideshow doesnt swipe , because viewpager swipe works over it. How to fix it ??

How to open external URL in default browser and all internal links in WebView Android?

android,webview,android-browser,external-links,internal-link
I am using WebView in my page and using local file assets to displaying in WebView but in main HTML page external website (not local) and I want to open just that link in default Browser on the users device This is my code in 'onCreate' method WebView v; v=(WebView)...

Android webview: controlling which browser is used on redirection

android,browser,webview
So I wanted when I use window.location in my webview, the page to be shown on the same page and to not open a new window with the default browser, so I added this code: view.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return false; }...

Facebook comments in Android Webview

android,facebook,webview
I am trying to load a web page with a Facebook comment section into my Android WebView. I followed the solution provided by this question: Android unable to implement facebook comment in a webview due to default browser When the user clicks the button in the web page to log...

MobileFirst: adapter returned data containing special characters

jquery,twitter-bootstrap,webview,mobilefirst,mobilefirst-adapters
One of my adapter returns some data containing special characters (like quotation marks, bullets or question marks etc.) onSuccess of adapter call, I save data in a variable as shown below. try{ var data = JSON.stringify(response.invocationResult) ; var _meetingDetailsArray = JSON.parse(data).MXEMEETINGSet.EMEETING ; }catch(Exception) { logger.error( Exception ); } After that...

Android - Javascript Interface with pointer to WebView - how to achive it without memleak

java,javascript,android,webview,garbage-collection
This is how I add JSInterface to Webview in Android app (we are inside of extended WebView Class): addJavascriptInterface(new JSInterface(this), "appBridge"); // 'this' is MyWebView that we are inside Then constructor JSInterface stores 'this' to his protected variable, because JSInterface methods need access to WebView class. But this way seems...

Which Java-Datatype is required when calling JavaScript-Method

java,javascript,webview,javafx-8
I'm trying to call a JavaScript-Method from within my JavaFX-WebView via: JSObject win = (JSObject)getEngine().executeScript("window"); win.call("showPDF", myPDFFile /*typeof java.io.File*/); the result of this call is: Invalid parameter object: need either .data, .range or .url This is the JavaScript-Part (not by me), which throws the error: var source; if (typeof src...

Android WebView not loading URL, error -400

android,webview
I have some weird error loading URL using WebView. D/chromium﹕ Unknown chromium error: -400 My code initializing webview (in Activity.onCreate()): webView.getSettings().setJavaScriptEnabled(true); webView.loadUrl("http://www.google.pl"); Manifest permission: <uses-permission android:name="ANDROID.PERMISSION.INTERNET"/> Problem on Lolipop and Kitkat. Build tools 22.0.1. I believe problem is trivial, but I can't make it work. Have any idea?...

Why isn't my ionic modal opening on an android 4.4 device?

android,cordova,webview,ionic-framework,angular-ui
I am using ionic framework with a android device (with cordova, of course). There's a modal I'm using for settings and stuff, it opens well on desktop browser with `inic serve` However, after build this, either with cordova build android or ionic build android it won't open again, not only...

Android WebView - get url redirected to, without loading the page in the webview

android,webview
I am trying to access a.com, which in turn redirects me to b.com and loads it in the webview. How do I just get the address that a.com redirects to without loading anything in the webview? String postData = "session=" + session; webView.postUrl(urlPassedFromArguments, EncodingUtils.getBytes(postData, "base64")); webView.setWebViewClient(new WebViewClient() { @Override public...

Caching in Webview is not working in Android

android,caching,webview,browser-cache,offline-caching
When I open webview, it runs great when there is a network connection, but I have enabled caching in it, and without a network connection, it shows an error and loaded cached web page is not showing. I have enabled caching and also set cache mode, but it's not working....

Why does javascript: on webview lead to a new page?

javascript,android,webview
So I've been trying to search around the internet if there was a something similar, but I just couldn't find what I was looking for. Anyways, my question is when using webview.loadUrl("javascript: [javascript].value = 'value'") or something similar to changing a property, such as innerhtml, it always opens the return...

JavaFX WebView can't load certain sites

java,webview,javafx,javafx-8,javafx-webengine
I'm trying to use JavaFX's WebView to load this site, but all I get is a blank screen. The WebView is working perfectly fine on other sites; it gets 100/100 on ACID3 and loads other HTTPS sites without any problems whatsoever. I can't find anything particularly wrong with the site...

Android - How to open the Hangout app from a Hangout URL displayed in the webview?

android,android-intent,webview,google-plus,hangout
I just made an Android app where I am displaying my website in a webview. My webpage has many links to Google Hangouts URL (https://talkgadget.google.com/hangouts/_/g23uuqx.......) in which there are people in a call. When this link is clicked on a Desktop's browser, the URL gets opened in a new tab...

Is AdView in Android contain a WebView inside it ?

android,webview,admob,adview
I have been working on implementing my own AdView custom view that does similar functionality to Google's AdView. I looked at the inheritance tree of AdView it seems that it inherits from ViewGroup and then from View. Does anyone know if AdView contains a Webview that displays HTML based ads...

How to load many (200-300) HTML pages in WebViews in background

android,webview
I want to be able to swipe between many HTML pages without noticeable lag. To do this, I want to load all of the pages into separate WebViews either in the background after the app is loaded, or in onCreate(). I'm using the code here: Looking for Android ViewFlipper Example...

IOS webview not show system alert like “the request time out”

ios,webview
My app is a web view app, but it shows a system alert like "the request time out". I do not want to show this alert. Can I dismiss this alert? Or how can I click the OK button in the source. Or can I get the OK object? So...

Xamarin Mac aplication doesn't react when I try to allow it in Dropbox

osx,webview,dropbox,xamarin.mac
I am developing a Xamarin Mac application and I need to do some data syncing with Dropbox. I have created a WebView which navigates to a URL where the user is prompted to enter its username and password. After hitting OK and successfully signing in I am presented with a...

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

android,webview,android-webview,android-websettings,android-webservice
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 the latest changes I have done...

Communication between Titanium app and remote webview

javascript,webview,titanium,appcelerator
I want to call a function onload in a remote webview, for now i have the following code: index.xml: <Alloy> <Tab title="Livestream" onClick="initialize"> <Window> <WebView id="webview" url="http://urltowebsite.com"/> </Window> </Tab> </Alloy> And the controller of index.js: $.webview.addEventListener('load', function(){ var data = "Hello world!"; $.webview.evalJS("foo('" + data + "');); }); And in...

Javascript calling Android methods in WebView

javascript,android,webview
I have some javascript running in WebView. In this Javascript code there a function which returns a boolean. I want to check the return value from this function and depends on it hide or not a view in my android code. I tried for one day and it does not...

Android WebView content display issue

android,webview
I have text loaded into WebView String html = "<p>1</p>\n" + "<p>2</p>\n" + "<p>3</p>\n" + "<p>4</p>\n" + "<p>5</p>\n" + "<p>6</p>\n" + "<p>7</p>\n" + "<p>8</p>\n" + "<p>9</p>\n" + "<p>10</p>\n" + "<p>11</p>\n" + "<p>12</p>\n" + "<p>13</p>\n" + "<p>14</p>\n" + "<p>15</p>\n" + "<p>16</p>\n" + "<p>17</p>\n"+ "<p>18</p>\n";...

Display complex Html text in android like gmail

android,html,webview,textview,monodroid
Hi i have to display html text with its style property, i tried both textview and webview . when i use textview with Html.fromHtml("html text ") its showing only text without html style and other hand when i use webview the whole content display in single line with horizontal scroll...

Suppress “Failed to load resource: net::ERR_FILE_NOT_FOUND” in Chrome Packaged App

google-chrome,webview,google-chrome-app,console.log
I get the message "Failed to load resource: net::ERR_FILE_NOT_FOUND" in the console when a webview in a Chrome Packaged App tries to load a non-existent local file. This is expected, because the program is supposed to check a couple of different location, starting with the local system and then switching...

How to open WebView through the onListItemClick (using Volley/JSON)?

android,json,listview,webview
I made a blog reader using Volley. I created WebView to show articles (open WebView with article) when you push on a List, but I have a problem with using onListItemClick. The problem is: Base on what I learned I should put the "name" of JSONArray, but the problem is,...

Fragment with Webview utilize harware back button to go to previous webpage

android,android-fragments,webview
This appears to have been asked a lot on stack overflow, but with answers which appear to no longer be implementable with changes to the SDK (I may be wrong!). I have been trying to allow a fragment inside my MainActivity to use the hardware button to go back to...

WebChromeClient OnJSAlert is not called

javascript,android,webview,webchromeclient
I'm running a JS script in a WebView. The script alerts a message to the WebView, and I want to receive it in my app. The problem is that onJSAlert is not called nor I can use @Override annotaion when definig the method. My imports are - import android.webkit.WebChromeClient; import...

webview not generating completely as bitmap in lollipop android

android,webview,bitmap
I want to generate bitmap from webview full page. some codes Below code for generating Bitmap from webview Webview to Bitmap : Picture p = webview.capturePicture(); webview.setDrawingCacheEnabled(true); webview.buildDrawingCache(); final PictureDrawable pictureDrawable = new PictureDrawable(pict); Bitmap bitmap = null; try { bitmap = Bitmap.createBitmap(pictureDrawable.getIntrinsicWidth(),pictureDrawable.getIntrinsicHeight(), Config.ARGB_8888); } catch (OutOfMemoryError e) { e.printStackTrace();...

xcode 6 - swift - passing a string through popover segue

swift,webview,segue,popover
My project has two view controllers. The initial view controller has three buttons (viewController1). The second view controller has a webview (viewController2). I set up a present as popover segue from the viewController1 to viewController2. I would like each button to open a specific webpage in the webview when the...

Unfortunately app has stopped in webview using eclipse

java,android,eclipse,webview
I was using webview for creating an app. When i run the code it shows Unfortunately app_name has stopped I referred to many answers in stackoverflow, but none of them working for me. I even tried installing the same app in mobile, it is giving the same error. Please refer...

Hyperlinks within the same page in android webview to load within application page [duplicate]

android,webview
This question already has an answer here: Android WebView click open within WebView not a default browser 8 answers I have created an android app that loads a web page. The app loads page and on clicking any hyper-links on web page, it loads inside the browser of phone....

Backspace and undo button not working

android,android-studio,webview,android-webview
I have attempted to make the enter button put a url into the webview using the following code, but once enter is pressed, both the undo and backspace button do not do anything anymore. Help? editText.setOnKeyListener(new View.OnKeyListener() { //inner class public boolean onKey(View v, int keyCode, KeyEvent event) { //identifies...

Website won't load in android webview but works fine in android browsers

java,javascript,android,android-intent,webview
This has been annoying me for a while now and I could really use some help. I have a website created on portfoliobox.net which works fine in chrome and every other browser I tried on android (actual phones, not emulators), however I wanted to make it into an app for...

Webview blank page quakenet

android,webview
Before read my post, I try to search, but I didn't resolve my problem. I use a webview for QuakeNet IRC WebChat WebView myWebView = (WebView) findViewById(R.id.webView); WebSettings webSettings = myWebView.getSettings(); webSettings.setJavaScriptEnabled(true); webSettings.setJavaScriptCanOpenWindowsAutomatically(true); webSettings.setDomStorageEnabled(true); myWebView.loadUrl("http://webchat.quakenet.org/"); myWebView.setWebViewClient(new WebViewClient()); I have a blankscreen. But when I try to load http://www.google.com, that's work....

Using a Spinner to Change webView

android,webview,onclick,spinner
I have an app that sends a user input to a website's search URL, like so: To do this, I was wondering: How do I store the last webpage visited on each site to cache? How should I add the website names to the spinner? How would I write the...

How to call a Javascript method in iOS?

javascript,html,ios,webview
<html> <head> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/quiz-1.js"></script> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <p class="question">1. What is the answer to this question?</p> <ul class="answers"> <input type="radio" name="q1" value="a" id="q1a"><label for="q1a">Answer 1</label><br/> <input type="radio" name="q1" value="b"...

Parsing Data from android Sign Up page to webView Sign Up page

android,webview,website
I'm new android developer, I don't have any great idea. I wanna make app that will take some input from users then will pass those input to a website for sign up & then when press Sign Up button from my app button will hit the website Sign Up button....

amcharts not showing theme background in Android webview

javascript,android,webview,amcharts
I am using a webview to host amcharts in an android application. The basic setup for the code is that I form an HTML document programatically and load it hosted in my assets folder. The amcharts libraries are located in a subdirectory of the assets folder. So far, this setup...