balck berry problem
the code i have used is following..the application is launching properly at most times,the only one point it fails is when I go to BookMarks Page and when i press the back button it takes me to the icons screen but when i click on the icon it is redirecting me to the BookMarks page rather than the original website I have configured for.
public static class LaunchScreen extends MainScreen{
public LaunchScreen(){
super();
//Add a field to the title region of the screen. We use a simple LabelField here. The ELLIPSIS option truncates
// the label text with "..." if the text was too long for the space available.
setTitle(new LabelField("MyApp", LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH));
//Add a read only text field (RichTextField) to the field portion of the screen. The RTF is focusable by default.
add(new RichTextField("MyApp"));
BrowserSession browserSession = Browser.getDefaultSession();
browserSession.displayPage("my url");
browserSession.showBrowser();
System.exit(0);
}
}
|