APN settings in Java ME

两盒软妹~` 提交于 2019-12-11 06:49:34

问题


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.



来源:https://stackoverflow.com/questions/8152913/apn-settings-in-java-me

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!