Skip to content
Advertisement

Tag: asynchttpclient

How to fill AutoCompleteTextView in Android with an API call?

I want to try to get a list of food items from an API and update the AutoCompleteTextView based on this. I’ve tried following the answer here but to no avail: https://stackoverflow.com/a/36799955/7429535 This is my code so far: You can see an example API response here: https://api.edamam.com/api/food-database/parser?ingr=red&app_id=8ff4be18&app_key=f2bf020e6d3cf1a9989c2a2163fb720f Currently, this code IS inputting the correct food names into the apiFoods ArrayList

Advertisement