0

I want to make something like the contact selection in OS 5.0 while composing message

For that I have made an autocompletefield with contacts as datasource. Now I want to add the user input, that is what he types into the drop down list which appears in autocompletefield so that if the contact is not available in the phonebook he can use the number.

phoenixwizard
  • 5,079
  • 7
  • 27
  • 38

1 Answers1

0

Check this link: How to get the selected item as String in a Blackberry AutoCompleteField?

public void onSelect(Object selection, int type) {

     super.onSelect(selection, type);
     if(selection != null) {
         String selectionAsString = getEditField().getText();
         // Do whatever else you need to do with the String.
     }
 }
Community
  • 1
  • 1
Nadhas
  • 5,421
  • 2
  • 28
  • 42