开发者

BlackBerry connection on simulater working, not on device

The following code works fine on the simulato开发者_开发知识库r, but when I deploy it to the BlackBerry device I'm not able to connect, am I doing something wrong?

URL = "socket://" + server + ":" + port + ";deviceside=true;apn=internet;tunnelauthusername=;tunnelauthpassword="; 
conn = (StreamConnection) Connector.open(URL);


Use this on OS5+ : http://www.blackberry.com/developers/docs/5.0.0api/net/rim/device/api/io/transport/package-summary.html

And this if older : http://www.versatilemonkey.com/HttpConnectionFactory.java

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜