Changes

Jump to: navigation, search

Lab BlackBerry Example

427 bytes added, 13:04, 27 February 2011
no edit summary
3. Add the listener object to the list of source listeners:
buttonField.setChangeListener(listener);
 
Here is the code you must write to add the button ''_buttonGoBack'' to the second screen
 
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);

Navigation menu