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.
The way I have done it now, is that
Try this:
Calendar c = Calendar.getInstance(); year = c.get(Calendar.YEAR); month = c.get(Calendar.MONTH); day = c.get(Calendar.DAY_OF_MONTH); // set current date into datepicker datepicker.init(year, month, day, null);