开发者

Blackberry connection issue

开发者 https://www.devze.com 2023-04-06 21:41 出处:网络
When connecting with a ConnectionFactory works on the simulator and doesn\'t work on a real device Torch 9800 works on Curve 9300 i ran the Network Diagnosis Tool on both showed an successful test wit

When connecting with a ConnectionFactory works on the simulator and doesn't work on a real device Torch 9800 works on Curve 9300 i ran the Network Diagnosis Tool on both showed an successful test with wifi on the curve but on the torch all tests fail, the strange part is that the browser works but both application and Network Diagnosis Tool fail. Can someone give me a clue ?

Added code :

ConnectionFactory cf = new ConnectionFactory();
         cf.setPreferredTransportTypes(new int[]{
                    TransportInfo.TRANSPORT_TCP_WIFI,
                    TransportInfo.TRANS开发者_运维技巧PORT_TCP_CELLULAR,
                    TransportInfo.TRANSPORT_WAP,
                    TransportInfo.TRANSPORT_WAP2,
                    TransportInfo.TRANSPORT_MDS,
                    TransportInfo.TRANSPORT_BIS_B
                });
        ConnectionDescriptor cd = cf.getConnection(s);
        if (cd!=null){
            connection = (HttpConnection) cd.getConnection();
        }else {

            String appendix = getBlackBerryConnectionParams();
            System.out.println("Strng: "+appendix);
            connection = (HttpConnection) Connector.open(s+appendix);
        }
0

精彩评论

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