开发者

"net,rim.device.internal.io.CriticallOException: Critical tunnel failure" what does this error is?

开发者 https://www.devze.com 2023-03-08 02:04 出处:网络
The application is running perfect in device and simulator when i do use via eclipse, but when i will give cod file to client, it gives the following error, any idea?

The application is running perfect in device and simulator when i do use via eclipse, but when i will give cod file to client, it gives the following error, any idea?

this is the error:

net,rim.device.internal.io.CriticallOExc开发者_开发技巧eption: Critical tunnel failure


Create your network connection in another thread

new Thread(){
    public void run(){
         //connection stuff
    }
}.start();

And add these settings to your url

String url += ";deviceside=true"
if(apn != null && !apn.trim.equals("")){
    url += ";apn="+apn;
}

More information here http://supportforums.blackberry.com/t5/Java-Development/Critical-tunnel-failure/td-p/416396

0

精彩评论

暂无评论...
验证码 换一张
取 消