Open main menu

CDOT Wiki β

Changes

Lab BlackBerry Example

32 bytes added, 12:09, 27 February 2011
no edit summary
Here is the code you must write to add the button ''_buttonGoBack'' to the second screen
<source lang="java">
ButtonField _buttonGoBack = new ButtonField("Go Back",
ButtonField.FIELD_HCENTER | ButtonField.CONSUME_CLICK);
ButtonField _buttonGoBack = new ButtonField("Go Back", ButtonField.FIELD_HCENTER | ButtonField.CONSUME_CLICK); _buttonGoBack.setChangeListener(new FieldChangeListener() { public void fieldChanged(Field field, int context) { UiApplication.getUiApplication().popScreen(); } }); add(_buttonGoBack);</source>