Android autocomplete EditText from server
12,706
I think that you could use the AutoCompleteTextView, like in this example: http://developer.android.com/reference/android/widget/AutoCompleteTextView.html
...but in order to use your server, you'll have to tweak your Adapter. That's what it's for :)
**EDIT: ** Here's a nice example: How do I Use AutoCompleteTextView and populate it with data from a web API?
Related videos on Youtube
Author by
Saurav Shah
Updated on September 14, 2022Comments
-
Saurav Shah over 1 year
I want to implement an Autocomplete mechanism for an EditText field, but the list of autocomplete comes from the server. I looked into AutoCompleteTextView but it only supports fixed strings by default.
I'm just talking about the UI. I'll be issuing a http request to my webserver and getting the JSON result back. When do I fire the request and how do I plug it into the UI?
-
Saurav Shah almost 12 yearsSorry my question was not clear enough. I'm just talking about the UI. I'll be issuing a http request to my webserver and getting the JSON result back. When do I fire the request and how do I plug it into the UI?
-
O__O almost 12 yearsI am also facing similar issue..please post the code if someone found a solution