开发者

Connector.open throws IO when using 3g

开发者 https://www.devze.com 2023-03-07 03:45 出处:网络
I\'m using the javax microedition Connector class to initialise a HttpConnection. This doesn\'t work with 3g while it works with wifi.

I'm using the javax microedition Connector class to initialise a HttpConnection. This doesn't work with 3g while it works with wifi.

HttpConnection connection = (HttpConnection) Connector.open("http://ww开发者_开发知识库w.google.com",Connector.READ);

I'm trying to solve this by detecting 3g. Can this be done?

0

精彩评论

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