Any way to grab a logo icon from website URL, programmatically?

后端 未结 7 941
夕颜
夕颜 2021-01-01 01:08

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.

7条回答
  •  星月不相逢
    2021-01-01 01:50

    I know I am late but this API will help others

    Android doesn't support favicon files. You can fetch favicon but can't show/use it.

    But Google provides free API to get favicon in image format.

    https://www.google.com/s2/favicons?sz=64&domain_url=microsoft.com

    Use Picasso to show icon in imageview.

提交回复
热议问题