Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant able to open datepicker #114

Open
lakkad-amish opened this issue Jul 16, 2015 · 0 comments
Open

Cant able to open datepicker #114

lakkad-amish opened this issue Jul 16, 2015 · 0 comments

Comments

@lakkad-amish
Copy link

Hello
I am trying to open a dialog from the activity but it crashed everytime.please help.

i have initiated like this

public class TaskStatus extends FragmentActivity implements OnClickListener,OnDateSetListener{
{
calendar = Calendar.getInstance();
datePickerDialog = DatePickerDialog.newInstance(TaskStatus.this, calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DAY_OF_MONTH), true);

and on click event i have written code as below

datePickerDialog.setVibrate(true);
datePickerDialog.setYearRange(1985, 2028);
datePickerDialog.setCloseOnSingleTapDay(true);
datePickerDialog.show(getSupportFragmentManager(), "datepicker");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant