Reputation: 3
I have a question, if I want to load a ListView directly from a database, for example on the first screen I'll have a search button that will search the database and display the results in another screen in a ListView. How would I do that?
Upvotes: 0
Views: 81
Reputation: 4816
Your question has a few parts, if you don't already know how to start.
1) First you will need to learn how to set up a custom ListView and a generic adapter
http://www.vogella.com/articles/AndroidListView/article.html
2) Then you need to figure out how to source your adapter with data pulled from your database http://androidtuts4u.blogspot.com/2013/02/android-list-view-using-custom-adapter.html
Upvotes: 0