Okay,I’ve been following this tutorial http://coenraets.org/blog/android-samples/androidtutorial/
Basically it gives me exactly what i need for my app
ONLY , I need the search button (or query) to be autoclicked…
I want the user to open the app and see the list already queried
also I have integrated this tutorial into a Tab application, so keep that in mind…
Please any help would be amazing!!! thank you a lot for taking time out of your lives to help me with this stupid thing
I’m a complete noob , I’m learning as I go
Thanka a lot again!
Fadi
I think the best way to achieve ‘autoclicking’ would be through the textwatcher-interface:
Like this:
I would advise you, to debug while using the TextWatcher just to understand how it works 😉
You should also consider that this method could use up a lot of memory, since you query your database with every letter that is typed. You could count the letters typed though, in
and setting a boolean value to true, when the user has typed more then 2 letters and start querying your DB then to avoid too much memory usage.
Edit:
This is the original search-Method:
Now try it like this:
There are some blanks in the code which you have to fill in by yourself. But that’s the basic idea behind my first post.