尝试通过Wi-Fi连接,但OS6 cd变量为null时出现问题,但它在OS5上有效
这是url字符串: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);}
}有人能帮帮忙吗。
发布于 2011-09-22 02:28:53
使用ConnectionFactory时,您不应将任何连接信息附加到您的URL。因此,您应该只将https://api3.popfax.com/index.php?service=Popfax传递给您的方法。
发布于 2011-09-22 19:46:56
Open a Wi-Fi HTTPS connection可能会对您有所帮助。
谢谢
https://stackoverflow.com/questions/7502562
复制相似问题