1. Download our Official Android App: Forums for Android!

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

Discussion in 'Android Development' started by regnarg, Jan 21, 2014.

  1. regnarg

    regnarg Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Jan 21, 2014

    Jan 21, 2014
    1
    0
    5
    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
     

    Advertisement

  2. Rukbat

    Rukbat Android Expert
    Rank:
    None
    Points:
    843
    Posts:
    10,392
    Joined:
    Jan 16, 2012

    Jan 16, 2012
    10,392
    2,894
    843
    Male
    Being retired and writing Tasker tasks.
    Fayetteville, NC, USA
    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.)
     

Share This Page

Loading...