WebView + WebChromeClient method onCreateWindow not called for target=“_blank”
I'm trying to develop a custom browser with WebView using Android API level 10 (sdk 2.3.3), unfortunately I don't know how to intercept request from the webpage to open URL in new browser window, like taps on links with target="_blank" . In conformity with the API Doc I have overridden the onCreateWindow of WebChromeClient , but is not called when such a link is tapped. Could be a bug of this API level? I'm also overriding shouldOverrideUrlLoading to avoid WebView opening subsequent links in the built-in browser. Here is my sample code that opens google.com . To test it, tap "News" and then