|
|
 |
BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2
 | This is the forum to discuss the Wrox book Professional Android Application Development by Reto Meier; ISBN: 9780470344712 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

December 30th, 2008, 03:23 PM
|
|
Registered User
|
|
Join Date: Dec 2008
Location: Alameda, CA USA
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Chapter 2 -- To Do List -- import java.util.ArrayList?
Seems like I had to add import java.util.ArrayList; at the top of the ToDoList.java file because when I tried to run this it gave me an error, and Eclipse suggested importing this because of the use of new ArrayList<String>().
I checked the sample code from this site and it uses this import.
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?
thanks
|

December 31st, 2008, 03:49 AM
|
 |
Wrox Author
|
|
Join Date: Oct 2008
Location: London, United Kingdom
Posts: 22
Thanks: 1
Thanked 3 Times in 3 Posts
|
|
Quote:
Originally Posted by SteveOliverC
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.
|

April 3rd, 2009, 03:50 PM
|
|
Registered User
|
|
Join Date: Apr 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
In training books & materials there always seems to be a gap bewteen the initial configuration of an environment and the daily coding ritual. I definitely find it frustrating when you do "exactly" what the text describes and you encounter unexpected red flags all over the IDE; it makes you feel like you're so off base that you have no idea what you're doing.
A little blurb somewhere would be nice, for sure. I'm glad I went ahead to compare the sample code as well, but it leaves you scratching your head saying "why does his look like that?" At any rate, enjoying the book so far, on to the next chapter!
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |