When a user makes changes to a TimePicker I need to save the hour, minute, and whether it was AM or PM so I can later add 1.5 hours to it and create an alarm in Android’s default alarm system.
I can’t get anything to save the user input right now…
Does anyone know either how I can do this or where I can look to see some code?
Thanks all.
If you are using a simple TimePicker, you can listen for each change in with an OnTimeChangedListener
If you are using a TimePickerDialog, you can retrieve the time when the user presses the “Set” button with an OnTimeSetListener
Hope that helps point you in the right direction.