1
問題已經間接談到在一些早期的問題,但我還沒有看到任何決定性一下吧..如何從LCDUI表單啓動LWUIT表單?
我目前使用的這一段代碼,以顯示內部CommandAction
實施LWUIT形式。
public void commandAction(Command cmnd, Item item) {
if (item == LogIn && cmnd == maincommand) {
RechForm = new com.sun.lwuit.Form("Basefook");
HttpRequestHandler handler = new HttpRequestHandler();
HTMLComponent htmlc = new HTMLComponent(handler);
htmlc.setPage("http://facebook.com");
RechForm.addComponent(BorderLayout.CENTER, htmlc);
com.sun.lwuit.Display.init(this);
RechForm.show();
}
}
目前它沒有調出窗體,也沒有崩潰。
好吧,如果這不可能,那麼你可以建議一種解決方案,以某種基於lcdui的MIDP的瀏覽器控制?