HttpURLConnection - “https://” vs. “http://”

后端 未结 6 1808
无人及你
无人及你 2020-12-29 13:15

I\'m trying to get the favicon of the url the user enters, for example

_url = \"google.com\";

I use HttpUrlConnection to get the Bitmap of

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-29 13:36

    Another answer that is even 'easier'.

    Just make the user enter the url (including protocol) for their favicon and validate that url returns a favicon. If not then display a validation error back to the end user.

    Following agile principals, do the least amount of work and see what works. If the one plan doesn't work, then try something different.

提交回复
热议问题