如何使用 3G 在 Blackberry 设备上获取 Httpconnection 数据流

发布于 2024-12-09 12:10:18 字数 385 浏览 2 评论 0 原文

朋友...

我对黑莓3G网络有一些疑问...

现在,我开发了黑莓应用程序,它使用MDS在模拟器上运行良好...

以下是我的HttpConnection代码..

httpConnection = (HttpConnection) Connector.open( url, 连接器.READ);

问题是,当我使用 3G 时,它无法在设备上工作。

如果是 Wifi,我通过添加后缀“;interface=wifi”解决了这个问题...

但是,我担心如何解决这个问题3G 时出现问题...

有人遇到过这种问题吗?

如果那样的话,我希望能帮助我...

致以诚挚的问候...

再次感谢...

friends...

I have some questions about Blackberry 3G network...

Now, I developed Blackberry app and it works fine on simulator by using MDS...

Following is my code for HttpConnection..

httpConnection = (HttpConnection) Connector.open(url, Connector.READ);

Problem is that it didn't work on device when I use 3G..

In case of Wifi, I solved this problem by adding suffix, ";interface=wifi"...

But , I 'm worried that how I can solve this problem in case of 3G...

Anyone who has experienced this kind of problem?

If then, I hope to help me...

Best regards...

thanks again....

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

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

发布评论

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

评论(1

假装爱人 2024-12-16 12:10:18

请在建立 http 连接时添加适当的连接后缀。

String url = "http://abc.com//index.html";

url = url + getConnectionString();

请使用以下网址获取 URL 字符串的连接后缀getConnectionString()

http://www.localytics.com/blog/2009/how-to-reliously-built-a-network-connection-on-any-blackberry-device/

指定连接后缀“deviceside=true”要求设备正确配置APN,或者在 URL 中包含 APN 规范。

APN 设置非常重要,如果您使用蜂窝网络进行 http 连接(没有 BB 套餐或 WIFI),

请查看此 视频。还有

please add the appropriate connection suffix while making the http connection.

String url = "http://abc.com//index.html";

url = url + getConnectionString();

Please use the below url to get the connection suffix OR getConnectionString() for the URL string

http://www.localytics.com/blog/2009/how-to-reliably-establish-a-network-connection-on-any-blackberry-device/

Specifying the connection suffix "deviceside=true" requires the device have the APN correctly configured, or you include APN specification in the URL.

APN setting is very important, if you are making the http connection using the cellular network (without BB plan or WIFI)

Have a look at this video. as well

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