Back to project page Android-Project-Manager.
The source code is released under:
GNU General Public License
If you think the Android project Android-Project-Manager listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.vaquerosisd.dialog; // ww w. ja va 2 s . co m import android.app.DatePickerDialog.OnDateSetListener; import android.app.Dialog; import android.app.DialogFragment; import android.app.DatePickerDialog; import android.os.Bundle; public class DatePickerFragment extends DialogFragment { private int year, month, day; OnDateSetListener onDateSet; public DatePickerFragment() { } @Override public void setArguments(Bundle args) { super.setArguments(args); year = args.getInt("year"); month = args.getInt("month"); day = args.getInt("day"); } public void setCallBack(OnDateSetListener ondate) { onDateSet = ondate; } @Override public Dialog onCreateDialog(Bundle savedInstanceState) { return new DatePickerDialog(getActivity(), onDateSet, year, month, day); } }