/[projects]/android/EKLLauncher/src/dk/thoerup/ekllauncher/DebugWebViewClient.java
ViewVC logotype

Annotation of /android/EKLLauncher/src/dk/thoerup/ekllauncher/DebugWebViewClient.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1616 - (hide annotations) (download)
Thu Oct 20 18:39:19 2011 UTC (12 years, 7 months ago) by torben
File size: 2857 byte(s)
first version
1 torben 1616 package dk.thoerup.ekllauncher;
2    
3     import android.graphics.Bitmap;
4     import android.net.http.SslError;
5     import android.os.Message;
6     import android.util.Log;
7     import android.view.KeyEvent;
8     import android.webkit.HttpAuthHandler;
9     import android.webkit.SslErrorHandler;
10     import android.webkit.WebView;
11     import android.webkit.WebViewClient;
12    
13     public class DebugWebViewClient extends WebViewClient {
14    
15     @Override
16     public void doUpdateVisitedHistory(WebView view, String url, boolean isReload) {
17     Log.d("EKL", "doUpdateVisitedHistory : " + url + " : " + isReload);
18     super.doUpdateVisitedHistory(view, url, isReload);
19     }
20    
21     @Override
22     public void onFormResubmission(WebView view, Message dontResend, Message resend) {
23     Log.d("EKL", "onFormResubmission");
24     super.onFormResubmission(view, dontResend, resend);
25     }
26    
27     @Override
28     public void onLoadResource(WebView view, String url) {
29     Log.d("EKL", "onLoadResource: " + url);
30     super.onLoadResource(view, url);
31     }
32    
33     @Override
34     public void onPageFinished(WebView view, String url) {
35     Log.d("EKL", "onPageFinished: " + url);
36     super.onPageFinished(view, url);
37     }
38    
39     @Override
40     public void onPageStarted(WebView view, String url, Bitmap favicon) {
41     Log.d("EKL", "onPageStarted: " + url);
42     super.onPageStarted(view, url, favicon);
43     }
44    
45     @Override
46     public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
47     Log.d("EKL", "onReceivedError " + errorCode + ": " + description + "<=" + failingUrl);
48     super.onReceivedError(view, errorCode, description, failingUrl);
49     }
50    
51     @Override
52     public void onReceivedHttpAuthRequest(WebView view, HttpAuthHandler handler, String host, String realm) {
53     Log.d("EKL", "onReceivedHttpAuthRequest");
54     super.onReceivedHttpAuthRequest(view, handler, host, realm);
55     }
56    
57     @Override
58     public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
59     Log.d("EKL", "onReceivedSslError");
60     super.onReceivedSslError(view, handler, error);
61     }
62    
63     @Override
64     public void onScaleChanged(WebView view, float oldScale, float newScale) {
65     Log.d("EKL", "onScaleChanged");
66     super.onScaleChanged(view, oldScale, newScale);
67     }
68    
69     @Override
70     public void onTooManyRedirects(WebView view, Message cancelMsg, Message continueMsg) {
71     Log.d("EKL", "onTooManyRedirects");
72     super.onTooManyRedirects(view, cancelMsg, continueMsg);
73     }
74    
75     @Override
76     public void onUnhandledKeyEvent(WebView view, KeyEvent event) {
77     Log.d("EKL","onUnhandledKeyEvent");
78     super.onUnhandledKeyEvent(view, event);
79     }
80    
81     @Override
82     public boolean shouldOverrideKeyEvent(WebView view, KeyEvent event) {
83     Log.d("EKL","shouldOverrideKeyEvent");
84     return super.shouldOverrideKeyEvent(view, event);
85     }
86    
87     @Override
88     public boolean shouldOverrideUrlLoading(WebView view, String url) {
89     Log.d("EKL","shouldOverrideUrlLoading " + url);
90     return super.shouldOverrideUrlLoading(view, url);
91     }
92    
93     }

  ViewVC Help
Powered by ViewVC 1.1.20