Java me LUIT HtmlComponent内存不足异常

Java me LUIT HtmlComponent内存不足异常,java-me,lwuit,Java Me,Lwuit,我想在LWUIT表单屏幕上显示Rss文件中的图像和说明 这是我的代码: HTMLComponent com=new HTMLComponent(); com.setBodyText(detailNews.getDescription()); form2.addComponent(com); 在循环中形成Rss URL的字符串是 <p><img border="1" align="left" width="150" vspace="2" hspace="2" height="1

我想在LWUIT表单屏幕上显示Rss文件中的图像和说明 这是我的代码:

HTMLComponent com=new HTMLComponent();
com.setBodyText(detailNews.getDescription());
form2.addComponent(com);
在循环中形成Rss URL的字符串是

<p><img border="1" align="left" width="150" vspace="2" hspace="2" height="159" src="/tmdbuserfiles/Prithvi2_launch1(3).jpg" alt="Prithvi II, ballistic missile, DRDO, armed forces,Chandipur, Balasore district, Odisha State" />The Strategic Forces 
Command of the armed forces successfully flight-tested the surface-to-surface Prithvi II missile from Chandipur in Balasore </P>
战略力量 武装部队司令部在巴拉索尔的昌迪普成功试射了地对地Prithvi II导弹


如果执行,我将面临应用程序意外退出,因为它内存不足异常

如果不需要显示图像,请从html字符串中删除
img
标记

String description = detailNews.getDescription();
StringBuffer newDescription = new StringBuffer();
int imgIndex = description.indexOf("<img");

newDescription.append(description.substring(0, imgIndex));
imgIndex = description.indexOf(">", imgIndex + 1);
newDescription.append(description.substring(imgIndex + 1));
description = newDescription.toString();
com.setBodyText(description);
String description=detailNews.getDescription();
StringBuffer newDescription=新的StringBuffer();
int-imgIndex=description.indexOf(“,imgIndex+1);
newDescription.append(description.substring(imgIndex+1));
description=newDescription.toString();
com.setBodyText(说明);

我正在阅读4个Rss文件并通过选项卡显示在我的表单上,我能够阅读4个文件并成功显示标题和图像(注意:图像使用ListCellrenderer显示),但当我单击列表项时,我需要显示描述,但我再次面临内存不足异常,并且我的应用程序即将关闭?您可能创建了太多对象,无法处理单击事件。但我认为这是另一个问题…现在我再次测试,即使我也不能显示标题,在中间本身,它是扔OutOpFoelExtExoTyHi,你能给你的电子邮件ID吗?