1
Answer

Sqlite database data show to listView

I try to sqlite database show on listview but my android application is unfocunatly stoped . plese right answer send to my email account .
I upload sourcode file.

Attachment: ListDB.rar

Answers (1)
0
Manikandan Murugesan

Manikandan Murugesan

NA 20.5k 98.8k 7y
The simplest way is to override toString() method of Habit class:
However the TextView is referenced, it will be filled with the toString() of each object in the array. You can add lists or arrays of custom objects. Override the toString() method of your objects to determine what text will be displayed for the item in the list.
 
Refer the following Link:
https://developer.android.com/reference/android/widget/ArrayAdapter.html