* Store suite will remove the suite including push connections,
* if there an error, but may not remove the temp jar file.
*/
MIDletInfo midletInfo = state.getMidletInfo();
String midletClassNameToRun = null, iconName;
MIDletSuiteInfo msi;
iconName = state.getAppProperty("MIDlet-Icon");
if (iconName != null) {
iconName.trim();
}
if (midletInfo != null) {
midletClassNameToRun = midletInfo.classname;
if (iconName == null) {
// If an icon for the suite is not specified,
// use the first midlet's icon.
iconName = midletInfo.icon;
}
}
msi = new MIDletSuiteInfo(info.id);
msi.displayName = state.getDisplayName();
msi.midletToRun = midletClassNameToRun;
msi.numberOfMidlets = state.getNumberOfMIDlets();
/* default is to enable a newly installed suite */
msi.enabled = true;