¡@

Home 

2014/10/16 ¤W¤È 08:12:56

android Programming Glossary: editsessionactivity

Get date from datepicker using dialogfragment

http://stackoverflow.com/questions/11527051/get-date-from-datepicker-using-dialogfragment

versions without dialogfragments EDIT not sure if it's important but parent activity is declared as public class EditSessionActivity extends FragmentActivity SOLUTION thanks to Lecho user this is the way to do it DatePickerFragmennt.class public class DatePickerFragment.. Calendar.DAY_OF_MONTH Create a new instance of DatePickerDialog and return it return new DatePickerDialog getActivity EditSessionActivity getActivity year month day ...and parent activity EditSessionActivity.class... public class EditSessionActivity extends.. it return new DatePickerDialog getActivity EditSessionActivity getActivity year month day ...and parent activity EditSessionActivity.class... public class EditSessionActivity extends FragmentActivity implements OnDateSetListener ... @Override public void..