I want to insert date,month,year and events in a table,and retrieve the event of a particular day, when the date is selected from a date picker!!
I have been searching about it, but got no convincing ideas!!
please if someone could help me out…
thanks
Create the SQLite Database table by executing the query to create a new table according to your constraints.
Use ContentValues to update/insert data in the table.
and Cursor to retrieve data from the table.
Source : This tutorial explains everything in more detail.
Disclaimer : This answer is only to help you understand how to work with SQLite (as you say that you haven’t been able to come across any convincing ideas). You would need to write your own code to handle the logic of retrieving the events according to the date selected in the DatePicker, but I think that should not be much of a problem.