开发者

BlackBerry connection on simulater working, not on device

开发者 https://www.devze.com 2023-03-13 11:17 出处:网络
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?

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

精彩评论

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