2011-12-19 56 views
1

任何一个可以告诉我,为什么当我在BB 7.0操作系统上运行该脚本,在BB 5.0,它工作正常延迟发生在BB 5.0上运行的HTML脚本工作正常,但不能在BB 7.0 OS中运行?

我的代码是

BrowserField myBrowserField; 
myBrowserField = new BrowserField(); 
add(myBrowserField); 
String content ="<html><head><style type='text/css'> p{color: blue;line-height:200%;}</style></head><body>"+ 
    "<p>Inspired by one of the most opulent among gems,Amber is our multi-tier Loyalty Programme</p>"+ 
    "<p align=justify>The Amber stone is associated with the fire element,Which is known to draw people,with itswarmth and radiance,while infusing a unique sense of loyalty into whatever it comes in contact with </p>"+ 
    "<p align=justify>This Programme is an example of our steadFast</p>" 
    ; 
myBrowserField.displayContent(content,"");//"http://localhost" 
+1

你说什么样的延迟?脚本在哪里被延迟?这看起来像直截了当的HTML给我。 – jprofitt 2011-12-19 12:59:49

+1

它在os7和os5中都能正常工作。我认为你的RAM容量很低。 – alishaik786 2011-12-19 13:57:57

+0

您是否在os 7.0的模拟器上检查过该模型或者模型号9860? @ alishaik786,@ jprofit – 2011-12-20 05:02:44

回答

1

尝试添加他“”看来你遗忘那一个:)

BrowserField myBrowserField; 
myBrowserField = new BrowserField(); 
add(myBrowserField); 
String content ="<html><head><style type='text/css'> p{color: blue;line-height:200%;}</style></head><body>"+ 
    "<p>Inspired by one of the most opulent among gems,Amber is our multi-tier Loyalty Programme</p>"+ 
    "<p align=justify>The Amber stone is associated with the fire element,Which is known to draw people,with itswarmth and radiance,while infusing a unique sense of loyalty into whatever it comes in contact with </p>"+ 
    "<p align=justify>This Programme is an example of our steadFast</p>"+ 
    "</body></html>" 
    ; 
myBrowserField.displayContent(content,"");//"http://localhost" 

我试着在我的9790与BB OS7和没有出错,工作出来就好。 对于RAM旁边的延迟,也许你正在安装许多应用程序...

相关问题