lundi 4 avril 2016

why does my app crash when trying to populate a listview from sqlite database?

my app is crashing when i try to start an activity where i have a listview on it. I am trying to get my sqlite data into the listview. DataBaseHelperClass relevent code:

enter image description here

enter image description here

enter image description here

Seed_table Class (how i add the data to the database via constructer)code: enter image description here

the Activity that has the listview which i want to populate(i call this ethod in the onCreate()) enter image description here

the custom layout i created: enter image description here

and finally the list view code which is on the activity i want to use. enter image description here

so any ideas why this would crash> is it something to do with the simpleListAdapter? or my database fields?

Aucun commentaire:

Enregistrer un commentaire