Errata for Android Apprentice 3rd Edition

Creating this topic to catch any typos and bugs in the 3rd Edition of Android Apprentice.

Chapter 9: Communicating Between Activities

list = intent.getParcelableExtra(MainActivity.INTENT_LIST_KEY) as TaskList in the following code example does not compile:

Screen Shot 2021-04-21 at 11.47.04 AM

There’s a type error:

Screen Shot 2021-04-21 at 11.49.23 AM

I resolved it by changing the line to the following, and it now compiles and runs correctly:

list = intent.getParcelableExtra<TaskList>(MainActivity.INTENT_LIST_KEY) as TaskList

@cpg6b
Well done for resolving it and thank you for pointing it out to us — it was on our radar as needing to be updated, and has been addressed in the next edition, which will be out tomorrow :slight_smile: !

Kind regards,
Edith