我开发了一个应用程序,通过移动应用程序使用 j2me 为诺基亚手机访问网络,但是当我试图在黑莓设备上运行这个应用程序时,我遇到了问题,不想打开任何网站,它只是冻结所以任何人都可以帮助我请因为我在应用程序中使用的这些代码行找不到任何解决方案
这条线我用来从网上阅读一些东西
hc = (HttpConnection) Connector.open(url); dis = hc.openDataInputStream();
int dataleft = dis.available();
for (int j = 0; j < dataleft; j++) {
buffer.append((char) dis.read());
}
dis.close();
hc.close();
和这条线打开一个网站
this.platformRequest("http://stackoverflow.com/questions");