开发者

Problem to write a web application in android development

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜