Thread: Serious Issues
View Single Post
  #2 (permalink)  
Old December 4th, 2009, 06:05 AM
Reto's Avatar
Reto Reto is offline
Wrox Author
Points: 287, Level: 5
Points: 287, Level: 5 Points: 287, Level: 5 Points: 287, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Oct 2008
Location: London, United Kingdom
Posts: 61
Thanks: 1
Thanked 7 Times in 6 Posts

There's certainly been a few changes since the release, but the code from the first 6 chapters should still work pretty well.

The problem you've indicated here is just a change in variable name. As you can see, the method signature is still the same:

public void onCreate(Bundle)
But the name of the bundle parameter is different. If you're seeing errors it's likely because the generated code now names the Bundle parameter savedInstanceSate, whereas in the code snippets I've used the name icicle. If you change them to make sure it's always the same name your errors should disappear.

If there are still any errors, let me know and I'll try and figure out what's going wrong.

Incidentally, the book was actually published a little over a year ago -- though it's still incredible how quickly things change!

Reto Meier

Author, "Professional Android 4 Application Development", Wrox, ©2012, 2010, 2008
Reply With Quote