Search code examples
blackberryjava-metype-ahead

Type Ahead property for contact list in blackberry?


I want to develop one application in blackberry.In that application i want to create functinality like in contact list i.e if there are many contacts in contact list & if i enter "Da"then it should return me the results like "Dany","Daniel",etc.(i.e. Type ahead property )so how should i go for it.the input(i.e. contact list) i am using to search in is Vector


Solution

  • Have you looked at AutoCompleteField? It should do what you want.


    You can access the filtered set by keeping a reference to the BasicFilteredList, or by calling getFilteredList() on the AutoCompleteField. Then make use of the ReadableList interface methods to access the filtered output.