Blackberry Network connection

531 views Asked by At

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.

2

There are 2 answers

4
Scott W On

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
Stack User 5674 On

Open a Wi-Fi HTTPS connection may help you.

thanks