View Single Post
  #2 (permalink)  
Old December 31st, 2008, 03:49 AM
Reto's Avatar
Reto Reto is offline
Wrox Author
Points: 104, Level: 2
Points: 104, Level: 2 Points: 104, Level: 2 Points: 104, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2008
Location: London, United Kingdom
Posts: 22
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Quote:
Originally Posted by SteveOliverC View Post
My question is, was that supposed to have been added automatically by Eclipse? If so, when the project was created, or when I typed in that line?

or, should this have been included in as a step in building out this example?
To keep the code samples in the book as concise as possible I decided not to include the import statements as a step in most of the examples. Including steps to add each import as needed cluttered up the snippets and samples in a way that seemed to detract from what I was trying to show.

The 'suggestion' feature in Eclipse makes pulling in the required imports really quick and simple, so it felt like a good compromise.

So the behaviour you're seeing is as expected -- for most examples you'll probably want to use Eclipse's mechanism for adding the import statements as you go through each step.
__________________
Reto Meier
Author, Professional Android Application Development
Reply With Quote