Populating a listview from a SQLite database

前端 未结 2 775
长情又很酷
长情又很酷 2020-12-09 00:16

I have an activity where i write a name which is insert in the database. In another activity I want to put a ListView which is populated with those names which are in the d

相关标签:
2条回答
  • 2020-12-09 00:47

    Please follow some simple tutorials first, some good tutorials are:

    1- Simple Example

    2- ListView of Data from SQLiteDatabase

    0 讨论(0)
  • 2020-12-09 01:06

    As you requested, here is a very thorough tutorial which I believe will answer your questions: http://www.vogella.de/articles/AndroidListView/article.html#overview.

    It explains you how to set a ListActivity and then creating your very own adapter to populate the list.

    Hope it helps!

    0 讨论(0)
提交回复
热议问题