Questions tagged [webviewclient]

An Android class to intercept load requests, key events, and other events.

An Android class that is attached to a Webkit Webview to intercept load requests, key events, and other events.

Documentation: https://developer.android.com/reference/android/webkit/WebViewClient.html

321 questions
0
votes
1 answer

Get single host name from onpagefinished method

After referring many articles on SO and google, couldn't find a solution for my question. The question is, am fetching the hostname in onPageFinished method of WebViewClient class. Problem arises when getHost() returns me the hostname multiple…
User210282
  • 83
  • 4
  • 13
0
votes
3 answers

WebView onProgressChanged() not called

I have a WebView which loads a URL all well & good. I have gotten a WebViewClient and extended onProgressChanged, but as far as I can tell it is not being called. Any ideas? wv.setWebViewClient(new WebViewClient(){ public void…
SquiresSquire
  • 2,404
  • 4
  • 23
  • 39
0
votes
1 answer

Progress bar issue in android

I have added a progress bar in my code to display progress of webview. But the progress bar doesn't show up. Where am I making a mistake? please advise. I have copied the complete code below. This code has 4 buttons, whenver a button is clicked on,…
user2685516
  • 51
  • 1
  • 2
  • 7
0
votes
1 answer

How to parse webview for Oauth 2.0 code in android

I'm trying to allow users in my android app to log in to their google account so i can access their contacts for the purpose of creating a friends list, and I'm trying to use OAuth to do this. So far I have formed the URL and have created the…
0
votes
1 answer

WebViewClient issues for android

WebViewPage.java package com.srccodes.androidprojects; import android.os.Bundle; import android.annotation.SuppressLint; import android.app.Activity; import android.view.Menu; import android.webkit.WebChromeClient; import…
user2493093
  • 31
  • 1
  • 4
  • 6
0
votes
1 answer

hybrid Android Application

Is possible make a hybrid app in android that his login system is made with social networks and is inside a webview, and then, if it login is successful the app begin to work natively? thanks folks in advance
hcarrasko
  • 2,320
  • 6
  • 33
  • 45
0
votes
1 answer

Passing WebView from one activity to another

I am doing hybrid application. It has two activities login and home. On login activity a web view with many java scripts is loaded. Now I want to use same webview in home activity because it takes some time to load all JavaScript’s. As per android…
0
votes
1 answer

Android WebView, view.capturePicture().getHeight() is 0

im working on Android 4.0. i have a WebView where i want to capture its screen. i Override the WebViewClient onPageFinished as folow: @Override public void onPageFinished(WebView view, String url) { Picture picture =…
0
votes
1 answer

Android WebView is blank after network disconnect

I have a following scenario for webview @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_web_view_tutorial); mWebView = (WebView)…
Babasaheb
  • 683
  • 6
  • 20
0
votes
1 answer

android webViewClient onReceivedError() always getting called even when there is no error

I am loading a url in a WebView, but the WebViewClient method OnReceivedError() always gets called even when the page is loaded successfully. Does anybody have any idea why this is happening?
50EC07
  • 25
  • 6
0
votes
1 answer

Activity gets destroyed when webview has webviewclient

Here is my code: public class AuthActivity extends Activity { public static final String REDIRECT_URL = "redirectUrl"; WebView webview; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); webview = new…
vbevans94
  • 1,500
  • 1
  • 16
  • 15
0
votes
2 answers

built-in zoom control not work if i have ontouch event in webview

i am using webiview and i override onTouchEvent than built-in zoom control is not working. wv.setOnTouchListener(new OnTouchListener() { public boolean onTouch(View arg0, MotionEvent arg1) { …
Sanket Kachhela
  • 10,861
  • 8
  • 50
  • 75
0
votes
1 answer

Android Fragments (with WebView) - Activity gets Destroyed

I am using a Tab based Activity in my App and I want to implement a Fragment Stack with WebViews. In these WebViews I want to catch URL requests and replace the current WebView Fragment with a new one. Unfortunately I always get Activity was…
Bins Ich
  • 1,822
  • 6
  • 33
  • 47
0
votes
0 answers

Call JavaScript function and obtain return value

I'm having a big trouble working on an Android app that is supposed to encapsulate a web app and I'm thinking that StackOverflow is my only hope now. The first problem was the following: I needed to intercept the click on the "About" link to launch…
Henrique Rocha
  • 1,737
  • 1
  • 19
  • 29
0
votes
1 answer

Does Android's Stock Web Browser use WebViewClient?

If I understand correctly, every WebView based implementation needs WebViewClient. But looking at the source code for Android 2.2's browser, I can't find any mention of WebViewClient. How does it work if it doesn't use it? If it does use it, where…
Bill The Ape
  • 3,261
  • 25
  • 44
1 2 3
21
22