I'm new to blackberry development. There is this question I've come across several times, which is "How to get the Selected item as string". The answers that were given did not fully answer the question:
AutoCompleteField autoCompleteField = new AutoCompleteField(filterList)
{
public void onSelect(Object selection, int SELECT_TRACKWHEEL_CLICK) {
ListField _list = getListField();
if (_list.getSelectedIndex() > -1) {
Dialog.alert("You selected: "+_list.getSelectedIndex());
// get text selected by user and do something...
}
}
The point is how can I get the selected text and "do something". Imagine I want to send the items as a string to a server via post. How would I do that in code?
Thank you! Michael.