开发者

Problem to write a web application in android development

开发者 https://www.devze.com 2023-03-10 18:30 出处:网络
I find out that while i write url with http:// (example - http://google.com )the browser open the page. But when i write without http:// (ex google.com ) it creates exception.

I find out that while i write url with http:// (example - http://google.com )the browser open the page. But when i write without http:// (ex google.com ) it creates exception.

But as a human behaviour most of time people write url as (ex www.google.com or google.com)except (ex http://google.com )in browser. Is there any program to solve 开发者_运维知识库this problem in android application development.


Check if the url starts with http:// or https://, if not append it in the code and use it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号