views:

34

answers:

1

I'd like to display the favicon of the website I am accessing via the android.webkit.WebView. I've tried two ways to get it:

1) WebViewClient.onPageStarted() method has a favicon parameter that is always null.

2) WebChromeClient.onReceivedIcon() method is never called.

3) Called WebView.getFavicon() in onPageStarted() and onPageFinished() but it always returns null.

I haven't been able to find an example online that shows how to access the favicon. Any hints would be greatly appreciated.

A: 

I think to remember that there is a method getFavicon() available for the WebView object. here is my stupid question did you try that?

Sephy
Yes, I tried that too. I've added that to my original post to clarify.
tronman
can you give the url of the site you want to get the favicon from? I'll have a look at that tomorrow morning.
Sephy
It doesn't matter which site... I can't get access to the favicon for *any* website. I do appreciate your help.
tronman
Indeed, I've been doing some research, even in the source code, no way to find how to retrieve this favicon. Except if your are getting it from the bookmark...
Sephy
Well, I guess I'll need to figure something else out. Thanks!
tronman
You should try asking on google dev group
Sephy