另外附加一種socket的方式:
d) (StreamConnection) Connector.open("socket://testserver:600;deviceside=true");
6、Using BlackBerry Internet Service
這個好像需要是Blackberry聯盟成員,需要批準,對這個相關信息可以見:http://na.blackberry.com/eng/partners/alliance.jsp
以上就是簡單的總結了這些。具體的問題只有開發中具體分析。歡迎莓友們討論。
注:以上參數之間需要用分號隔開,附帶一份以上出現的一些參數解釋:
Parameter
Description
WapGatewayIP
IP address of the gateway.
WapGatewayAPN
APN for General Packet Radio Service (GPRS) networks only. For testing purposes, you can use rim.net.gprs
WapGatewayPort
Gateway port value. If port 9203 is specified, Wireless Transport Layer Security (WTLS) is used unless WapEnableWTLS=false is specified.
WapSourceIP
IP address of the source.
WapSourcePort
Source port value.
TunnelAuthUsername
User name for APN session, when Password Authentication Protocol (PAP) or Challenge Handshake Application Protocol (CHAP) authentication is used.
TunnelAuthPassword
Password for APN session, when PAP or CHAP authentication is used.
WapEnableWTLS
Explicitly turns on or turns off WTLS. If this parameter is not specified, WTLS is used by default for connections to port 9203.
本文來自CSDN博客,轉載請標明出處:http://blog.csdn.net/lyerliu/archive/2010/02/01/5277446.aspx