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?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
The only way I know is using a suffix:
"http://somenonexistingurl.fake;apn=<myapn>"
I think it should also work in a J2ME MIDlet running on BB.
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.