Initialize this headless alert.
super(null,
Resource.getString(ResourceConstants.LCDUI_DISPLAY_HEADLESS),
null, AlertType.INFO);
displayId = theDisplayId;
midletControllerEventProducer = theMidletControllerEventProducer;
setTimeout(Alert.FOREVER);
// Don't put the background command on the main display's alert
if (!MIDletSuiteUtils.isAmsIsolate()) {
backgroundCommand = new Command(Resource.getString(
ResourceConstants.OK), Command.OK, 2);
addCommand(backgroundCommand);
}
exitCommand = new Command(Resource.getString(ResourceConstants.EXIT),
Command.EXIT, 1);
addCommand(exitCommand);
setCommandListener(this);