开发者

Cannot connect to internet when sign and run from simulator to real Blackberry devices

I have got one problem about internet connection in real devices. I develop my Blackberry chat application using Eclipse JDE and it run smoothly on Blackberry Simulator (OS: 4.7, 5.0 and 6.0). But 开发者_Python百科when I sign it and install it in a real device. It always states: "No internet connection". I've check my wifi and GPRS connection and it works fine.

Are there any adjustments for internet application developed using simulator deployed on a real devices?


Without seeing the code we can’t find the actual reason of this issue. Still let me tell you about the a common reason

In the connection string depending on the state add interface = wifi or deviceside = true.

HttpConnection connection = null;
if (WLANInfo.getWLANState() == WLANInfo.WLAN_STATE_CONNECTED) {
connection = (HttpConnection) Connector.open(url+ ";interface=wifi",
Connector.READ_WRITE,true);
} else {
connection = (HttpConnection) Connector.open(url+";deviceside=true", Connector.READ_WRITE,true);
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜