2010-11-09 59 views
0

我可以连接到网络服务并使用各种设备下载数据,例如具有OS 4.6或更高版本的BlackBerry 9000。BlackBerry 8330连接问题

但是,8330和OS 4.5.0.77不起作用。我还没有在83.0以上的任何设备上使用这个代码。 在8330上挂起了JSR172 web服务调用中的resultObj = op.invoke(inputObject);行。这是在第一次webservice调用成功后 - 它挂在第二个。

实际上有两个web服务:

  1. 用于身份验证的Web服务。
  2. 该webservice用于下载所有的信息。

事情我已经迄今为止尝试:

  1. 擦拭设备 - 什么也没做
  2. 将设备连接到Eclipse,看到底是怎么回事 - 没发现什么有用的
  3. 使用4.5(MDS运行)在8330模拟器上运行代码 - 毫无问题地运行,没有问题

有谁知道如何解决这个问题?

这里是我建我的连接字符串:

String webserviceURL = developmentUrl; 

    // if it is simulator then force the network that is available on 
    // the PC 
    if (DeviceInfo.isSimulator()) { 
     webserviceURL += ";deviceside=true"; 
    } else if ((CoverageInfo.getCoverageStatus() & CoverageInfo.COVERAGE_MDS) == CoverageInfo.COVERAGE_MDS) { 
     // go through MDS 
     webserviceURL += ";deviceside=false"; 
    } 
    // else if ((CoverageInfo.getCoverageStatus() & 
    // CoverageInfo.COVERAGE_CARRIER) == CoverageInfo.COVERAGE_CARRIER) 
    // { 
    // webserviceURL += "'deviceside=true";// go direct 
    // } 

    // check if the wifi is available and change the url to use the wifi 
    // signal 
    if ((RadioInfo.getActiveWAFs() & RadioInfo.WAF_WLAN) != 0) 
    // check for carrier 
    { 
     if (WLANInfo.getWLANState() == WLANInfo.WLAN_STATE_CONNECTED) 
     // check for wifi 
     { 
      // WebService URL when the app is being used in the 
      // actual device 
      webserviceURL = webserviceURL + ";interface=wifi"; 
     } 
    } 

    // WebService URL when the app is being used in the actual device 
    _propertyValues = new Object[] { webserviceURL }; 

回答

0

我能够去〜50K块的数据来解决这个问题。我很乐意帮助有类似问题的人。