I\'m developing an application in which I\'ve got search option. In that search box, if I type \'a\' I want all names of all my friends starting with a, which I\'ll get from
Fetch names from the server on loading the screen, using asynctask.
Then you can make use of AutoCompleteTextView or MultiAutoCompleteTextView to achieve your need.
You specify already fetched names in the adapter. See more on AutoCompleteTextView