Java ME中的APN设置 [英] APN settings in Java ME

查看:171
本文介绍了Java ME中的APN设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于无法在纯Java ME中为HttpConnection指定 APN 供应商特定的黑客其他而不是BlackBerry OS URL后缀?

Since it is not possible to specify the APN for HttpConnection in plain Java ME, are there vendor specific hacks other than BlackBerry OS URL suffixes?

推荐答案

我知道的唯一方法是使用后缀:

The only way I know is using a suffix:

"http://somenonexistingurl.fake;apn=<myapn>"

我认为它也应该在BB上运行的J2ME MIDlet中工作。

I think it should also work in a J2ME MIDlet running on BB.

对于其他非bb设备,我的猜测是否定的。在J2ME中,您不是在编程为电话,而是在连接的受限设备中编程,该设备可能根本没有互联网。

As for the other non-bb devices, my guess is no. In J2ME you are not programming to a "phone" but to a "connected limited device" which may not have internet at all.

这篇关于Java ME中的APN设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆