I have an alert dialog which lists around 100 cities. Is there a way to search within it? Or maybe autocomplete?

I want to add a textbox which will filter the list according to what I type.
EDIT: I’m very SORRY. What I meant was that I wanted to FILTER the above list based on what I type in a textbox. For example if I type ‘D’, I should get only Dhaka..
Ok I finally managed to do it using a custom Dialog.
citylistview.xml
CityListDialog.java
This is the results I get when I call the dialog. Thanks everyone.