我想在android.webkit.WebView中显示我正在访问的网站的favicon。我尝试了两种方法来获取它:
1)WebViewClient.onPageStarted()方法有一个总是为null的favicon参数。
2)WebChromeClient.onReceivedIcon()方法从未被调用。
3)在onPageStarted()和onPageFinished()中调用WebView.getFavicon(),但它总是返回null。
我无法找到在线示例来显示如何访问favicon。非常感谢任何提示。
1)WebViewClient.onPageStarted()方法有一个总是为null的favicon参数。
2)WebChromeClient.onReceivedIcon()方法从未被调用。
3)在onPageStarted()和onPageFinished()中调用WebView.getFavicon(),但它总是返回null。
我无法找到在线示例来显示如何访问favicon。非常感谢任何提示。