1 package ro
.ieval
.unical
;
3 import java
.util
.Calendar
;
5 import android
.app
.DatePickerDialog
;
6 import android
.app
.DatePickerDialog
.OnDateSetListener
;
7 import android
.app
.Dialog
;
8 import android
.app
.DialogFragment
;
9 import android
.os
.Bundle
;
11 public class DatePickerFragment
extends DialogFragment
{
12 public static final String ARGUMENT_YEAR
= "year";
13 public static final String ARGUMENT_MONTH
= "month";
14 public static final String ARGUMENT_DAY
= "day";
17 public Dialog
onCreateDialog(final Bundle savedInstanceState
) {
18 final Bundle args
= getArguments();
19 return new DatePickerDialog(getActivity(), (OnDateSetListener
) getActivity(),
20 args
.getInt(ARGUMENT_YEAR
),
21 args
.getInt(ARGUMENT_MONTH
),
22 args
.getInt(ARGUMENT_DAY
));