android - I want to take the date from DatePicker -


this question has answer here:

well doing app has 1 activity , class called mypicker extends dialogfragment , implements datepickerdialog.ondatesetlistener

the thing when user click in button datapicker appear , want take date datepicker texfield activity.

how recommend that?

if changing date in date picker can this

datepicker.setondatechangelistner(new ondatechangedlistener() {  public void ondatechanged(datepicker view, int year1, int monthofyear1, int dayofmonth1) { year = year1; monthofyear = monthofyear1; dayofmonth = dayofmonth1; } } ); 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -