You Are Here:

Community: Wiki

 

Talk:RSS Parser with KXML in Java ME

From Forum Nokia Wiki

Hi all, i have used this example to get update on particular events and works fine. Next, i have add this in a commendAction but the error is: warning: To avoid potential deadlock, operations that may block, such as networking, should be performed in a different thread than the commandAction() handler.

I have used thred and now i view:


ALERT: java/lang/NoSuchMethodError: No such method getRetryTimeout.()I.

It looks like a missing method. This error happened when the connection encountered some problems (and it seems tried to reconnet). This caused the J2ME application to completely crash and exit.

Why?? what happens? thanks advanced

Review:

This article describes how to parse an RSS feed using the kXML library. The article consists of an example which shows how to read the title, description and link fields of items in an RSS feed. The example is kept fairly simple to help illustrate the concepts. The main parse method is broken down into different parts which are explained individually. A link is also provided to download a sample midlet containing the code outlined in the article.

The article demonstrates a useful concept. Quite often, midlets download RSS feeds and display this information using some sort of ticker control. The code example is nice and simple and useful explanations are provided for the elements of the parse method which are not obvious (such as reading the "rss" and "channel" tags at the beginning of the feed). The code demonstrates how to open an HttpConnection, retrieve an InputStreamReader object and pass this to the KXmlParser which the kXML library provides.

--Larry101 13:22, 30 September 2009 (UTC)

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia