开发者

Consuming a web page through my blackberry app

I want to open a web page and then take certain contents from开发者_开发知识库 this page onto some array elements and then work on it . I am able to open the page in a new browser but how do i read it . Does it have any inputbuffer's or something like in android . plss i need help ... just migrated from android .


Try this code to open InputStream instance:

String someAddress = "http://www.myserver.com/mypage.html";  
HttpConnection httpConnection = (HttpConnection) Connector.open(someAddress);
InputStream inputStream = httpConnection.openInputStream();

After that use built InputStream instance to process contents of received web-page.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜