mardi 4 août 2015

using autocomplete value to get new value from sqlite and populate edittext

I have a autocomplete code that picks and displays options from the sqlite db based on the first letter/character entered. I want, when the right option is selected from list of displayed options, the value to be passed to a query and the result passed to an edittext field. The autocomplete change listener has a method

afterTextChanged(Editable s)

but it only seemingly accepts one character (not whole string). Any advice on how I can go about this? or an online resource to do further reading?

Aucun commentaire:

Enregistrer un commentaire