Listing 34.14 errata?


#1

Listing 34.14 uses “R.string.cell_text” as a resource string setting up the cell text and there is no such string defined for the project.

Your code uses startDateTextView.setText("Run at " + run.getStartDate()); instead of the book’s String cellText = context.getString(R.string.cell_text, run.getStartDate()); startDateTextView.setText(cellText);


#2

The cell_text string is defined in Listing 33.2 (p. 527 in the print version).


#3

Thanks for the reply - found my issue - instead of typing in all the strings I grabbed that from the code download and it did not have the cell_text string either. Figures the first time I get tired of typing in the strings I get burned :wink: