Find solution

How can I display data in a listview?

Here are 21 best answers to ‘How can I display data in a listview?’ - the most relevant comments and solutions are submitted by users of Stack Overflow, Yahoo! Answers and Quora.

Best solution

  • How do i display data from my database in a listview?

    Hi i got some three tables in my database. i want to be able to display the name and surname from the database in a listview. first i open the database and add a client's name, surname and number. Then i close the database. from here, i get confused and as to how i can display the name and surname in one line but in a listview leaving behind the number. here is my database class called DBAdapter and the clientsActivity class where i want to be able to display the client i added in it. i know...

    Answer:

    I can't see anywhere that you are assigning your database cursor to the ListView via a ListAdapter ...

    Mark as irrelevant Undo

Other solutions