我为黑莓开发了一个应用程序,它已获得应用程序世界的批准,但出现以下错误
on 4.6
Critical tunnel failure
和
on 5.0 and 6.0
ava.io APN not specified
请帮忙解释为什么会出现此错误以及如何解决
最佳答案
我认为问题是您没有在网址中添加适当的连接后缀。
点击链接可以解决您的问题: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 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;
}
关于blackberry - 黑莓严重隧道故障错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5959467/