I wrote some code to connect to a URL in a BrowserField. In the process its shows Illegal State Exception. If I click Continue, then it connects. I do not understand what is the problem.
Here is the code I am using:
class MoreBrowserScreen extends MainScreen
{
String email;
public MoreBrowserScreen(String email)
{
this.email=email;
setTitle(HeaderManager.tabsManager());
HeaderManager.more.setFocus();
TabsManager(Paths.HOME,Paths.ALERTS,Paths.COLL,Paths.APP,Paths.FMORE).getTabs();
BrowserField myBrowserField = new BrowserField();
add(myBrowserField);
myBrowserField.requestContent(email);
}
protected void makeMenu(Menu menu, int instance)
{
MenuItemClass mic = new MenuItemClass();
menu.add(mic.getExitItem(0, 0));
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…