mardi 9 juin 2015

How to store multiple DATES in sqlite android and fetch them to display in a List?

I have an android activity with a list of dates. Date are date_from and date_to. so User might enter many dates (date_from and date_to) for some events that occurred in past. I want to store these dates in sqlite database so I made a table of user and entered all date_from in one column and date_to in another column.

when user exit the activity obviously android kills that activity so its empty. Now i want to fetch all those dates back and store them back into the list view so that user can see that these are the dates that are already entered. May be my approach is wrong, if anybody can just guide me a better approach to achieve this functionality.

Thank you. here is my table picture

Aucun commentaire:

Enregistrer un commentaire