Blackberry Network connection

雨燕双飞 提交于 2019-12-11 12:43:08

问题


Trying to connect via Wi-Fi and I have an issue with the OS6 cd variable is null but it works on OS5

This is the url Strng: https://api3.popfax.com/index.php?service=Popfax;interface=wifi;interface=wifi

public ServiceConnectionBlackBerry(String s) throws IOException {
        ConnectionFactory cf = new ConnectionFactory();
        ConnectionDescriptor cd = cf.getConnection(s);
        if (cd!=null){
            connection = (HttpConnection) cd.getConnection();
        }else {
        System.out.println("Strng: "+s);}
      }

can someone help please.


回答1:


When using ConnectionFactory you should not append any connection information to your URL. So instead you should just pass https://api3.popfax.com/index.php?service=Popfax to your method.




回答2:


Open a Wi-Fi HTTPS connection may help you.

thanks



来源:https://stackoverflow.com/questions/7502562/blackberry-network-connection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!