I need to be able to choose date and time in my application It should either be done by using a dialog, or starting a new intent.
我现在这样做的方式是,我开始一种新的意图,因为我需要确定日期和时间。
My problem is that I need to set the current date on the Datepicker
(This is possible with the Timepicker
using setCurrentHour
and setCurrentMinute
) onCreate, and set that as a lower boundary.
我在安文森软件中找不到任何功能,可以使用<代码>DatePicker。
Anyone have a suggestion to solve this problem?
提前感谢!
Edit:
Important: The DatePicker
and TimePicker
must be in the same dialog/intent