An Android class to intercept load requests, key events, and other events.
0
votes
2answers
32 views
Android Web View - shouldoverrideurlloading not called
I'm using android web view to load a url. it's working fine but the problem is some of the links (target=_blank) inside the web page not opening default way. i debug the project and found these links ...
0
votes
1answer
26 views
Do something if WebView url contains a string
I have a WebView in which I load a webpage. In this webpage the user needs to do some actions. A specific action needs to be executed when the user arrives on a specific webpage. This action should ...
0
votes
0answers
20 views
Detect WebView and Hide NavBar menu on site
i have problem hiding Navigation Bar from website when Site detect Android App (WebView). I tried many solutions from internet and stack overflow but i couldnt make it working. The website that is ...
0
votes
2answers
28 views
Loading https page in webview
I am trying to display https://plus.google.com/myprofilepage(ignore myprofilepage part I just made it up, in code its substituted with my actual profile page) page in my app within a webview. The ...
1
vote
1answer
224 views
can't open file chooser in WebView Android 4.4.2 using WebChromeClient
In my webview by clicking "Choose File" button In samsung 7 inch tablet I want to open a File Browser, but I can't open this in Android Version 4.4.2.
So can u plz help me for this?
Here is my Code.
...
0
votes
1answer
46 views
Android WebView doesn't store cookies or deletes them
So, I started developing an app which is using ONE webview. The app has a sign in button, which, if you press it, directs you to the Steam login page of a website called csgolounge.com. I also ...
0
votes
0answers
59 views
Enabling specific SSL protocols with Android WebViewClient
My application uses WebViewClient to make SSL connections to the server.
The server is configured to only accept TLSv1.1 and above protocols.
1) How do I check which SSL protocols are a) Supported ...
0
votes
0answers
56 views
Rewrite EVERY URL Resource of an Android WebView
I did not found an acceptable solution for rewriting all urls referenced in an WebView of an Android-App.
I mean all urls!
Not just those from HTTP-GET Methods. I also need to rewrite urls with ...
0
votes
0answers
26 views
Launching Multiple URLs in Android WebViewClient
I am developing an android app that loads a webpage using WebView and WebViewClient. The first thing I wanted to accomplish was navigation of the site within the app wrapper. I've accomplished this ...
1
vote
1answer
90 views
android webview cookies not working
Setting an cookie using PHP doesn't work in Android Web-view. I've tried using the "CookieManager" manager and even tried setting cookie domain sever side. I'm out of idea on how to fix this.
...
1
vote
0answers
62 views
Android's webviewclient onPageFinished() not fired on certain page.
In my android app, a web view wraps a mobile website. As a user browsers the mobile website I would like to show/hide back and/or forward arrow to assist his/her navigation. To determine show hide ...
0
votes
1answer
134 views
Android WebView Intent send email with “to” pre-filled
below is the html code, when i click this. i want open email and fill the "to" field with "[email protected]"
<a href="mailto:[email protected]">Send Mail</a>
i'm already try this code, ...
0
votes
1answer
24 views
My WebViewClient is refreshing in a loop
I'm trying to load a web in a webview, but when the page is loaded, the webview carry on refreshing the view in a loop. How I can avoid this?
My code to load the page is the next:
In the ...
0
votes
1answer
75 views
How to get url from html a tag custom attributes in android?
<a href="url_href" data-href="WANTED_URL">Click me</a>
In android webview is there any way to get url specified in custom attributes?
In my problem I need to get url present in ...
0
votes
2answers
67 views
Check if certain url is finished loading, then open another one in WebView
I want to check if certain URL is finished loading, and then load another URL and if that new url is finished loading do something, how?
I know how to check if certain URL is finished loading like ...
0
votes
1answer
50 views
How to disable load images in WebView except certain image?
I want to prevent WebView from loading images except certain image that starts with specific URL.
How to?
Thank you.
0
votes
1answer
31 views
Detect when #close is a part of url in WebView
I have a WebView that I'm trying to handle behavior for when #close is added to the end of a url.
The code below triggers for every load url that doesn't have #close appended to it. How do I handle ...
2
votes
1answer
152 views
Listen for URL fragment id change in WebView
It seems that the WebViewClient methods such as shouldInterceptRequest(), onPageStarted(), and shouldOverrideUrlLoading() only listen for URL changes that cause the WebView to load a new page. Is ...
1
vote
0answers
189 views
Android WebViewClient onLoadResource() called agian after onPageFinished() when targetSdkVersion is 19
I've defined a CustomWebViewClient class that extends WebViewClient, and simply override onLoadResource() and onPageFinished() to control progressbar's visibility as follow:
@Override
public void ...
0
votes
2answers
83 views
Using Java Pattern Regex to extract information from decoded mailto in WebViewClient
I use android API 19 to embed website in webview and here i face this problem that when a user click link mailto. I want to extract information and start ACTION_SEND intent.
String firstUrl = ...
0
votes
0answers
20 views
How to show option menu only if onPageFinished() is called?
I created this inner class for my WebView:
private class MyBrowser extends WebViewClient {
final ProgressBar progress = (ProgressBar) getView().findViewById(R.id.ProgressBar);
@Override
...
0
votes
0answers
49 views
Insert a button play/pause in WebView
There is a button in the Activity when clicked, opens with a reference to AlertDialog url from the Internet. How can I insert a button play/pause in WebView, or link my layout file with existing code?
...
0
votes
1answer
88 views
NullPointerException when initializing the media player on url
I need help, there are osvnonoe Activiti in which history is loaded tracks, when you click on the track opens an alert dialog with loading the page, then the link is redirected, and the output is a ...
1
vote
2answers
51 views
Delay before the redirect page
There is a link which is 5 seconds redirects to another page, how can I make a delay before the redirect
Here's an example link: ...
7
votes
1answer
680 views
Android WebView ignoring target=“_blank” when added WebViewClient
I am facing a strange issue.
In my application, I need to load a static html file based on clicked button in a WebView from assets folder.
Now among 5 html files, one html file contains 15 static ...
0
votes
1answer
970 views
Android : WebView onPageFinished not calling after shouldOverrideUrlLoading method in android 4.4
I am working on WebView android 4.4 when URL redirect happens loading wheel keep on loading its not dismiss properly. I googled lot but I'm not getting. Can any one explain what is the flow of the ...
1
vote
0answers
102 views
WebView.setWebViewClient Events Not caled in Android 4.4 devices
in android 4.4 webview has changed, you can see it here: https://developer.android.com/guide/webapps/migrating.html
I am compiling my app with targetsdkversion and minsdkversion set to 9, so my ...
0
votes
1answer
105 views
Why Cakephp security cookies is not stored in WebViewClient?
Is there any particular reason why CAKEPHP security cookies is not set on Android WebViewClient?
This is how i setup my webviewclient:
@Override
protected void onCreate(Bundle savedInstanceState) {
...
6
votes
2answers
3k views
Android 4.4 giving ERR_CACHE_MISS error in onReceivedError for WebView back
I have a webview in my Layout. By default, a search form is opened in it. On search, a listing section appears below the search form. If any link in the list is clicked, the details page opened. Now I ...
1
vote
0answers
312 views
Android using both WebViewClient and WebChromeClient
I need to manipulate the links in the html so i'm using a WebViewClient to do it. The problem is I've got some iframes that load local html pages and they aren't displyed.
But, if i use the ...
0
votes
1answer
393 views
onPageFinished/onPageStarted in WebViewClient is never called
I am writing a little web application for Android and I need to get some JS variables from HTML page, but code in setParam(final String str) is never called.
Also, code in onPageStarted(...) and ...
0
votes
0answers
15 views
I want to call an AsyncTask many times from an interface Javascript webview
I have an Async Task to download files on my server. It works fine when it's called from an activity and it can execute many times. but when it's called from an interface Javascript class it can only ...
0
votes
1answer
51 views
WebViewClient loads previous user data even after logout
I'm loading an URL into my WebView using:
mWebView.setWebviewClient(new WebViewClient);
This URL loads a Http authentication page. Once a user logs in, his credentials are saved in a ...
2
votes
0answers
137 views
WebView Crash by java.io.IOException: close failed: EIO (I/O error) libcore.io.IoUtils.close(IoUtils.java:41)
i've got a crash log upload by users on Android 4.0/4.1,but i cant reproduce it.the log is like this:
java.io.IOException: close failed: EIO (I/O error)
libcore.io.IoUtils.close(IoUtils.java:41)
...
0
votes
1answer
45 views
webviewclient when loading HTTPS webpages
I am having a webview , and webviewclient enabled for it. I have observed that
1.When loading HTTP pages the call flow is like onPageStarted > shouldOverrideUrlLoading >onPageFinished
So here its ...
0
votes
0answers
769 views
WebView.addJavascriptInterface not working
I need to call my java function from the web response:
Here is my code please point where am I going wrong
Activity:
@InjectView(R.id.loadCardWebView)
android.webkit.WebView webView;
...
1
vote
0answers
120 views
Android 4.4 KitKat - Webview - Reload webpage, but remember location
Android 4.4 Webview - Re-load re-created webpage, but remember location
I have an app that builds a big html file containing lots of text with some hyperlinks, which when clicked, are picked up by a ...
0
votes
1answer
99 views
android webview form post
I want to write a form proxy in my app. The html file is stored locally and the form code is
<form action="custom" method="POST" />
My custom WebView should handle the action tag ...
0
votes
1answer
128 views
WebViewClient not called the second time
I have a WebView which I use to load some html content locally in my app. It first loads the content, then calls a JavaScript function which then scrolls the WebView to a particular position.
The ...
0
votes
0answers
138 views
Link to Google Play Store from within WebView using only JavaScript
Long story short: I created a mobile webapp a while ago and it seems fairly popular, especially on Android. Today I discovered someone created an Android App and listed it in Google's Play Store that ...
0
votes
1answer
29 views
create webview on top of the other layouts which fits to screen
Can I create a WebView on top of all the other layouts dynamically?
Actually I want to have WebView on the top of all the layout and which fits to the screen?
I am using LinearLayout. Can I do this ...
0
votes
1answer
189 views
What does the method `WebViewClient.onReceivedLoginRequest` do
In the document said: "Notify the host application that a request to automatically log in the user has been processed.", however, I don't understand this. Can anyone explain it in detail.
1
vote
0answers
244 views
How to have Android webview open links that are target “_blank” in default browser
How to have Android webview open links that are target “_blank” in default browser , i tried the following code but it still show all links with the webview , any one have a solution ?
public ...
0
votes
1answer
23 views
How to let WebViewClient load websites that are not google.com in own activity
How must my WebViewClient be so all Websites that are not Google.com are loaded in an external WebView within it's own activity?
Thanks
0
votes
0answers
154 views
Android WebView intercept JavaScript functions
Is there a way to intercept JavaScript methods that result in HTTP requests? I know there is the JavaScriptInterface. I use this to register an event listener that listens for clicks on submit buttons ...
0
votes
0answers
277 views
shouldOverrideUrlLoading() in Android WebViewClient not called when using setUserAgentString() on WebView
I have a Fragment with a WebView. I use a custom WebViewClient that I set to the WebView. I need to display web pages in desktop mode instead of the mobile version. But this seems to prevent my custom ...
0
votes
0answers
98 views
Embed youtube video in html5 android
I am developing an android web app using html5 and webview. I am trying to play a you tube link in my html5 page. Its getting played on chrome web browser and xperia ZR(4.3 v), but not working on ...
0
votes
1answer
167 views
Android Ask for permission to use location within webview
I have an application that uses a webview and inside the webview is a map, I have got it working to the user automatically find the users location with the following code:
Manifest file Permissions:
...
0
votes
1answer
299 views
Android Geolocation on webview
I need to get the location of a user from within a webview and it's not asking me for permission to get the location. Below is my webview code:
WebView Setup
public void WebViewSettings(){
...
1
vote
1answer
158 views
Calculating data downloaded by webview for a given url by using webview client?
I'm trying to calculate the data downloaded in my WebView. Following is my WebViewClient
WebViewClient mWebViewClient = new WebViewClient() {
@Override
public void ...