0

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 is it "hiding"?

Community
  • 1
  • 1
Bill The Ape
  • 3,261
  • 25
  • 44

1 Answers1

1

It is implemented inside the tabs (see Tab.java).

Joe
  • 14,039
  • 2
  • 39
  • 49
  • Thank you very much. Is there a systematic method to finding this type of information? Or better yet... how did you find out that WebViewClient is inside `Tab.java`? – Bill The Ape Oct 08 '12 at 17:51
  • Answering myself: My Firefox's `Find` text-search doesn't find `WebViewClient` in the decorated version of the source code for some reason, but it finds it without any problem in the [Raw](http://grepcode.com/file_/repository.grepcode.com/java/ext/com.google.android/android-apps/2.2_r1.1/com/android/browser/BrowserActivity.java/?v=source) version (available by clicking the [Raw](http://grepcode.com/file_/repository.grepcode.com/java/ext/com.google.android/android-apps/2.2_r1.1/com/android/browser/BrowserActivity.java/?v=source) link). So using the raw version seems to be the method. – Bill The Ape Oct 08 '12 at 18:57