通过宽带或 GPRS 的 Midlet 连接

发布于 2024-07-13 20:58:07 字数 419 浏览 5 评论 0原文

Midlet 使用 HttpConnection 连接 Web 服务应用程序。

移动设备可以使用无线宽带连接到互联网,或者可以使用网络提供商(即沃达丰或维珍)提供的互联网设施,我认为这被称为 GPRS。 如果我的理解有误,请指正。

现在我的问题是 midlet 何时运行它将使用哪种连接? 其次,我是否需要为 midlet 编写不同的代码才能使用 GPRS,或者这并不重要?


I deployed my application on Nokia E65 and it asked me which connection to use. The mobile had both wireless lan and provider GPRS active.

在 iPhone 上,首选无线局域网。 (与J2me无关)

Midlet using HttpConnection to connect a webservice application.

A mobile can use a wireless broadband to connect to internet or can use internet facility provided by the network provider i.e. Vodafone or Virgin which is I think known as GPRS. Correct me if my understanding is wrong.

Now my question is when the midlet will run which connectivity it will use? Secondly do I need to code differently for midlet to use GPRS or it doesn't matter?


I deployed my application on Nokia E65 and it asked me which connection to use. The mobile had both wireless lan and provider GPRS active.

On IPhone the preference is for wireless lan. (Not related to J2me)

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

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

发布评论

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

评论(2

月亮邮递员 2024-07-20 20:58:07

J2ME 中没有标准的接入点选择 APi。

这意味着 MIDlet 本身无法决定是使用 Wi-Fi 还是 GPRS。

某些电话允许用户更改应用程序设置,以便强制 MIDlet 在特定网络可用时使用该网络(并且可能在首选网络不可用时提示用户选择替代网络)。

这主要是因为没有标准的方法来描述包含足够信息的无线网络:QoS、下载和上传的每字节成本、平均比特率、ping 时间......

在大多数情况下,自动选择网络的逻辑没有这些信息会太复杂而且不够可靠。

到目前为止,手动选择接入点是让用户负责数据传输成本的唯一方法。

There is no standard Access Point Selection APi in J2ME.

That means the MIDlet itself can't decide whether to use Wi-Fi or GPRS.

Some phones will allow the user to change application settings in order to force a MIDlet to use a specific network when it is available (and maybe prompt the user for an alternative when the preferred network is not available).

This is mostly because there is no standard way to describe a wireless network that contains enough information : QoS, cost per byte downloaded and uploaded, average bitrate, ping time...

In most cases, the logic to automatically choose a network without those information would be too complicated and not reliable enough.

Manual Access Point selection is the only way to put the user in charge of the cost of data transfer, so far.

稚然 2024-07-20 20:58:07

这取决于客户端的手机。 在某些型号上,只有一种 GPRS 配置可供所有应用程序(包括 midlet)使用。在另一些型号上,用于浏览的配置可能与 midlet 使用的配置不同。

It depends on the client mobile phone. On some models, there is only one GPRS configuration that is used by all applications including midlets, On some others the configuration used for browsing can be different than the one used by midlets.

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