Set date of datepickerdialog from EditText
I am very much surprised that I couldn't find this in net even after 1 hour searching! I have a date picker dialog slightly modified from the original Pickers example (thanks to Raghunandan for this ). But I do not want to set the default date as current date, rather it should pick the date from EditText and set that date to datepickerdialog. Can anybody please help me solving this? My current code stands as below. EDITED I need to know how I can access the value of EditText datepurchased from inside DatePickerFragment class. MAIN CLASS: public class EditEntry extends Activity implements