Hii
i want to display rss feed titles and image in a list?in this code i am trying to display rss feed titles on lwuit Form Screen,But when i run my Source Code,i am able to display,only one title,and the loop is stopping?But when i try to do the same code using lcdui list Screen,i am successfully able to display the tittles and image from rss feed url...
//method called by the parsing thread
USING LCDUI LIST AND FORM:
public void addNews(News newsItem) {
news.addElement(newsItem);
myNewsList.append(newsItem.getTitle(), newsItem.getImage());
myDysplay.setCurrent(myNewsList);
}
Here my Sample Code Using LWUIT LIST AND FORM:
//method called by the parsing thread
public void addNews(News newsItem) {
myNewsList.addItem(newsItem.getTitle());
form1.addCommandListener((ActionListener) this);
form1.addComponent(myNewsList);
form1.addCommand(cmdExit);
form1.addCommand(cmdDetails);
form1.setScrollable(true);
form1.setTransitionInAnimator(Transition3D.createRotation(250, true));
form1.show();
Can you check once my Source Code?
}

Reply With Quote
is added. To get more titles add myNewsList.addItem(newsItem.getTitle()); in a loop.



