• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps An autocomplete textview for contact names that get their numbers?

regnarg

Lurker
Hi,

I'm trying to learn how to make an autocomplete textview in an android app would have a dropdown list of contacts with their numbers, based on the letters that the user enters that match a part of a name of a contact.

How would I accomplish this? I've spend hours on google without finding a complete solution, which I thought was odd.

Any help would be appreciated!

Thanks,

A beginner android developer
 
Put the names and numbers into the database.

As the user types a letter, do a SELECT on what the user has entered so far, and fill the dropdown with the names and numbers returned. Eventually the user will give up or select something from the dropdown. (It's 1980s programming. All autocomplete dropdowns with local databases work that way and have for as long as I can remember.)
 
Back
Top Bottom