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

Resource Not Found Exception with onDateSet method #132

Open
Cyux07 opened this issue Sep 22, 2017 · 0 comments
Open

Resource Not Found Exception with onDateSet method #132

Cyux07 opened this issue Sep 22, 2017 · 0 comments

Comments

@Cyux07
Copy link

Cyux07 commented Sep 22, 2017

android.content.res.Resources$NotFoundException: String resource ID #0x5
                                                                                      at android.content.res.Resources.getText(Resources.java:1178)
                                                                                      at android.widget.TextView.setText(TextView.java:5157)
                                                                                      at com.cqut.cfc.matsui.flowerbirdspot.minor.ProfileActivity.onDateSet(ProfileActivity.java:276)
                                                                                      at com.fourmob.datetimepicker.date.DatePickerDialog.onDoneButtonClick(DatePickerDialog.java:323)
                                                                                      at com.fourmob.datetimepicker.date.DatePickerDialog.onDayOfMonthSelected(DatePickerDialog.java:336)
                                                                                      at com.fourmob.datetimepicker.date.SimpleMonthAdapter.onDayTapped(SimpleMonthAdapter.java:95)
                                                                                      at com.fourmob.datetimepicker.date.SimpleMonthAdapter.onDayClick(SimpleMonthAdapter.java:89)
                                                                                      at com.fourmob.datetimepicker.date.SimpleMonthView.onDayClick(SimpleMonthView.java:157)
                                                                                      at com.fourmob.datetimepicker.date.SimpleMonthView.onTouchEvent(SimpleMonthView.java:265)
                                                                                      at android.view.View.dispatchTouchEvent(View.java:10731)

when I invoke a textview in the override method onDateSet, this Exception occured.
i can use the view in other place.(it's bind by butterknife)

@Override
    public void onDateSet(DatePickerDialog datePickerDialog, int year, int month, int day) {
        Date birthday = new Date(year, month, day);
        birthdayTextView.setText(birthday.getDate());
    }
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