Any way to grab a logo icon from website URL, programmatically?
android, java, layout, webview, xml
Solution
It's called a favicon, and all you have to do is:
- If there's an icon at `/favicon.ico`, use that.
- Otherwise, get the content of the page, and extract the location from `<link rel="shortcut icon" href="URL goes here" />`. You’ll need to use an HTML parser and find the `<link>` with a `rel` of either `icon` or `shortcut icon`.
Problem
I am in the process of creating an activity where I will show the list of website visited with its logo and its alias name chosen by user. e.g. Recent Websites Visited logo1 website1/alias name logo2 website2/alias name . . so no The question is, (Ref. attached image) How to get website logo displayed on left side of http://?