Skip to content

Resource Not Found Exception with onDateSet method #132

@Cyux07

Description

@Cyux07
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());
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions