Add below code to url:
;interface=wifi
StreamConnection conn = (StreamConnection) Connector.open("http://192.168.87.72/data.xml;interface=wifi");
Then we can access the data from above url via blackberry emulator, otherwise, you will get an exception.
本文介绍了一种通过在URL中添加特定参数以实现使用BlackBerry模拟器访问数据的方法。通过一个具体的示例,展示了如何利用Java代码打开包含特殊接口标识的URL来获取数据。
140

被折叠的 条评论
为什么被折叠?



