I have the following piece of test code:
public void createTestData(int size)
{
try {
Alert alert = new Alert(null, "Creating test data...", null, AlertType.INFO);
Gauge gauge = new Gauge(null, false, Gauge.INDEFINITE, Gauge.CONTINUOUS_RUNNING);
alert.setIndicator(gauge);
alert.setTimeout(Alert.FOREVER);
getMasterController().display(alert);
DataFactory.createAndSaveCustomerDOs(size, new int[] { 1, 1, 1, 1, 0 });
alert = new Alert(null, "Test data created", null, AlertType.CONFIRMATION);
getMasterController().display(alert, homeScreen);
} catch (SQLException e) {
getMasterController().handleException(e);
}
}
The first alert DOES NOT display. The test data gets created, and then the second alert DOES display.
The platform is Series 40 6th edition. The same behavior is observed on a Nokia 6288.
Thanks in advance for your help.

Reply With Quote


