WAP2 不工作:严重隧道故障
我正在为 Blackberry 开发一个应用程序,但我遇到了一些问题。
我想使用 WAP2 连接到世界,但收到此错误:
Critical tunnel failure
我发布了以下代码:
private String connectionParameters() { if(WLANInfo.getWLANState() == WLANInfo.WLAN_STATE_CONNECTED) { return ";interface=wifi"; } else { int coverageStatus = CoverageInfo.getCoverageStatus(); ServiceRecord record = this.getWAP2ServiceRecord(); if(record != null && (coverageStatus & CoverageInfo.COVERAGE_DIRECT) == CoverageInfo.COVERAGE_DIRECT) { return ";deviceside=true;ConnectionUID=" + record.getUid(); } else if((coverageStatus & CoverageInfo.COVERAGE_MDS) == CoverageInfo.COVERAGE_MDS) { return ";deviceside=false"; } else if((coverageStatus & CoverageInfo.COVERAGE_DIRECT) == CoverageInfo.COVERAGE_DIRECT) { return ";deviceside=true"; } } return null; }
我真的希望沃达丰不是在阻止 WAP2 :(
预先感谢大家!
I'm developing an app for Blackberry but I'm stuck with something.
I wanna use WAP2 to connect to the world, but I get this error:
Critical tunnel failure
I'm posting the code below:
private String connectionParameters() { if(WLANInfo.getWLANState() == WLANInfo.WLAN_STATE_CONNECTED) { return ";interface=wifi"; } else { int coverageStatus = CoverageInfo.getCoverageStatus(); ServiceRecord record = this.getWAP2ServiceRecord(); if(record != null && (coverageStatus & CoverageInfo.COVERAGE_DIRECT) == CoverageInfo.COVERAGE_DIRECT) { return ";deviceside=true;ConnectionUID=" + record.getUid(); } else if((coverageStatus & CoverageInfo.COVERAGE_MDS) == CoverageInfo.COVERAGE_MDS) { return ";deviceside=false"; } else if((coverageStatus & CoverageInfo.COVERAGE_DIRECT) == CoverageInfo.COVERAGE_DIRECT) { return ";deviceside=true"; } } return null; }
I really hope it's not Vodafone who's blocking WAP2 :(
Thanks in advance to everyone!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
检查您的设备上是否填充了正确的 APN 设置。这些设置是特定于无线提供商的,因此请联系沃达丰了解您需要的设置,或者尝试在谷歌上搜索(很可能您会发现它们是公开可用的)。
Check that proper APN settings are populated on your device. The settings are wireless provider specific, so contact Vodafone for the settings you need OR try to google on this (most likely you'll find them publicly available).
刚刚得到沃达丰阿尔巴尼亚的确认。 WAP仅限于他们的服务,因此上面的代码没有错误。
Just got confirmation from Vodafone Albania. WAP is limited to their services, so there's no error in the code above.