Android Question AutoCompleteEditText with sql

tufanv

Expert
Licensed User
Longtime User
Hello,

is it posible to use autocompleteedittext with a sql file contaiining the items. for example sql file will contain the list of 1000 items and when text is entered autocomplete will use the sql file for suggestions.

?

TY
 

bsnqt

Active Member
Licensed User
Longtime User
Hi tufanv: you can check SearchView (by Erel) it is very powerful and easy to implement.
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
Searchview is causing me a problem : It gives error : Listview must first be initialized.. When i use the apk erel posted there is no problem but when i coy the code and module into my program it says listview must be first initaliazed. any ideas ?
 
Upvote 0

bsnqt

Active Member
Licensed User
Longtime User
I need to see your code before can say some thing. But most likely what you need to do is to recheck (see the log) as you definitely has to initialize the listview.

It should be done in the sub Global of the Class... I successfully implemented the SearchView in my project.

B4X:
Public Sub Initialize (Callback As Object, EventName As String)
lv.Initialize("lv")
End Sub
 
Last edited:
Upvote 0

tufanv

Expert
Licensed User
Longtime User
no that does not solve. It gives error in : et_text_changed listview must be first initalized.
If i select to continue when the error happens it is woprking but i dont understand why its giving an error ?
 
Upvote 0

bsnqt

Active Member
Licensed User
Longtime User
tufanv:

I am glad to hear you can solve your prob.

Please share with the forum your solution or how you find the error etc. That may help another members and help you as well (people will be happier to help you next time)
 
Upvote 0
Top