Critical tunnel failure error blackberry -
i have developed app blackberry ,its approved appworld gives following error
on 4.6 critical tunnel failure
and
on 5.0 , 6.0 ava.io apn not specified
please why error coming , how solve it
i think problem didn't add appropriate connection suffix url.
follow link can solve 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 ou can use 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; }
Comments
Post a Comment