Critical Call Io 异常:黑莓中的关键隧道故障问题

发布于 2024-11-06 05:48:25 字数 97 浏览 0 评论 0原文

在我的应用程序中,我与网络连接,它没有显示任何错误,但是当我在手机中安装应用程序时,它显示严重呼叫 io 异常:严重隧道故障。为什么会出现这个错误。请帮助我。

谢谢

In my app i connecting with web,it not showing any error but when i installed app in phone it shows critical call io exception:critical tunnel failure. why this error occurs.Please help me.

Thank You

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

疯了 2024-11-13 05:48:25

点击链接可以解决您的问题:http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is_-_Different_ways_to_make_an_HTTP_or_socket_connection.html?nodeid=826935&vernum=0

还有你可以使用以下示例代码:

private static String获取连接字符串(){
字符串连接字符串=“”;
if(WLANInfo.getWLANState()==WLANInfo.WLAN_STATE_CONNECTED){
连接字符串=“;接口= wifi”;
}

 else if((CoverageInfo.getCoverageStatus() & CoverageInfo.COVERAGE_MDS) == CoverageInfo.COVERAGE_MDS){
     connectionString = ";deviceside=false";
}
    else if((CoverageInfo.getCoverageStatus() & CoverageInfo.COVERAGE_DIRECT)==CoverageInfo.COVERAGE_DIRECT){
        String carrierUid=getCarrierBIBSUid();
        if(carrierUid == null) {
            connectionString = ";deviceside=true";
        }
        else{
             connectionString = ";deviceside=false;connectionUID="+carrierUid + ";ConnectionType=mds-public";
            }               
        }
 else if(CoverageInfo.getCoverageStatus() == CoverageInfo.COVERAGE_NONE)
    {

    }
return connectionString;
}

Follow the link can solve your problem:http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is_-_Different_ways_to_make_an_HTTP_or_socket_connection.html?nodeid=826935&vernum=0

And also you can use the following sample code:

private static String getConnectionString(){
String connectionString="";
if(WLANInfo.getWLANState()==WLANInfo.WLAN_STATE_CONNECTED){
connectionString=";interface=wifi";
}

 else if((CoverageInfo.getCoverageStatus() & CoverageInfo.COVERAGE_MDS) == CoverageInfo.COVERAGE_MDS){
     connectionString = ";deviceside=false";
}
    else if((CoverageInfo.getCoverageStatus() & CoverageInfo.COVERAGE_DIRECT)==CoverageInfo.COVERAGE_DIRECT){
        String carrierUid=getCarrierBIBSUid();
        if(carrierUid == null) {
            connectionString = ";deviceside=true";
        }
        else{
             connectionString = ";deviceside=false;connectionUID="+carrierUid + ";ConnectionType=mds-public";
            }               
        }
 else if(CoverageInfo.getCoverageStatus() == CoverageInfo.COVERAGE_NONE)
    {

    }
return connectionString;
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文