TimePicker Android and a Database
- by user1820528
I have a database with a table which contains a start time and an end time. The user has to select both through the Android app, and then I have to retrieve the two times into my database.
For now, I have 2 TimePicker in my xml file, and I have 2 TimePicker in my java file TimePicker start_time = (TimePicker) findViewById(R.id.timePickerStart);
Can someone help me know how I should retrieve the times, and use them in java (add a listener, etc.). And also, should I use TimeStamp or Date in the database ?
My purpose is to send a notification (Toast?) to the user at those times. So should I retrieve the hour and the minute separately ?
I'm sorry for asking so many questions, but I'm really lost here :(
Thank you!