TimePicker Android and a Database
Posted
by
user1820528
on Stack Overflow
See other posts from Stack Overflow
or by user1820528
Published on 2012-11-16T16:36:38Z
Indexed on
2012/11/16
16:59 UTC
Read the original article
Hit count: 143
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!
© Stack Overflow or respective owner