问题
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