原來 ChoiceGroup 係唔可以 implicit 的… 會return error ….
1 2 |
ChoiceGroup cg = new ChoiceGroup ("select location", Choice.IMPLICIT); //error !! |
change to following today:
1 2 3 4 5 6 7 |
private void displayListSelect() throws Exception { stringArray = new String[]{"KCR station", "U gym", "HCA", "UC", "NA"}; ImplicitList = new List("select location", List.IMPLICIT, stringArray, null); ImplicitList.addCommand(exitCommand); ImplicitList.setCommandListener(this); display.setCurrent(ImplicitList); } |