Hi,
Unfortunately this is an old bug in S60 3rd edition FP2.
It has been fixed some time ago. In my 3.2 device I cannot reproduce it.
As workaround, could you please try SortedList.getSelection() ?
Code:
final SortedList sortedList = new SortedList(shellTest, SWT.V_SCROLL, SortedList.FILTER);
Command cmd = new Command(sortedList, Command.GENERAL, 0);
cmd.setText("Get selected item(s)");
cmd.addSelectionListener(new SelectionListener() {
public void widgetDefaultSelected(SelectionEvent ev) {
}
public void widgetSelected(SelectionEvent ev) {
MessageBox dlg = new MessageBox(shellTest);
String s = "";
String sel[] = sortedList.getSelection();
for (int i = 0; i < sel.length; i++) {
s += sel[i] + "\n";
}
dlg.setMessage(s);
dlg.open();
}
});