Back to project page groundify-android.
The source code is released under:
GNU General Public License
If you think the Android project groundify-android 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 deftsoft.android.iground.utility; // www .java 2s . c o m import android.app.DatePickerDialog; import android.app.Dialog; import android.app.DatePickerDialog.OnDateSetListener; import android.os.Bundle; import android.support.v4.app.DialogFragment; public class DatePickerFragment extends DialogFragment { private int year, month, day; OnDateSetListener ondateSet; public DatePickerFragment() { } public void setCallBack(OnDateSetListener ondate) { ondateSet = ondate; } @Override public void setArguments(Bundle args) { // TODO Auto-generated method stub super.setArguments(args); year = args.getInt("year"); month = args.getInt("month"); day = args.getInt("day"); } @Override public Dialog onCreateDialog(Bundle savedInstanceState) { // TODO Auto-generated method stub // return super.onCreateDialog(savedInstanceState); return new DatePickerDialog(getActivity(), ondateSet, year, month, day); } }