Alex Rivera | Logout

Can ajax call be done in Android?

Asked 2012-10-09T05:48:03.047
9

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 web server. But for that I've to make request simultaneously with typing each letter. But when I googled, I got mixed reactions. Some people said Ajax call is not possible in Android. Basically Android is based on java. Then why is not possible to perform AJAX calls. Could anyone guide me to a good link related to AJAX call in Android if it is possible ?

Edit
Report

1 Answer

1

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

and MultiAutoCompleteTextView

answered 2012-10-09T06:20:59.393

Your Answer