Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional Android 2 Application Development
This is the forum to discuss the Wrox book Professional Android 2 Application Development, 2nd Edition by Reto Meier; ISBN: 978-0-470-56552-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Android 2 Application Development section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 13th, 2010, 03:21 PM
Registered User
 
Join Date: Apr 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ch2 ToDo List errors

After entering all the code and adding import statements for all the necessary classes, the following two lines get flagged as having errors:

ListView myListView = (ListView)findByViewId(R.id.myListView);
final EditText myEditText = (EditText)findByViewId(R.id.myEditText);

and the project won't compile.

I'm guessing "id" needs to be defined in R.java for this to work. The book doesn't say anything about this, and I'm unsure as to what id should be defined as.

Any suggestions would be great.
Reply With Quote
  #2 (permalink)  
Old April 14th, 2010, 12:35 AM
Authorized User
 
Join Date: Mar 2010
Location: Baldwin Park, CA
Posts: 16
Thanks: 0
Thanked 1 Time in 1 Post
Default

its findViewById not ByView
Reply With Quote
  #3 (permalink)  
Old April 14th, 2010, 01:09 AM
Registered User
 
Join Date: Apr 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by EricTapia View Post
its findViewById not ByView
Oh, you have got to be kidding me. You're right. This is me feeling like a fool now.

Thanks for pointing that out to me. It ran. Go figure.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 4 Todo List 2 - odd behavior EricTapia BOOK: Professional Android 2 Application Development 1 March 21st, 2010 03:22 AM
ToDo List Problems - Chapter 4 wolverineik BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 0 February 28th, 2010 09:29 AM
Chapter 6 Todo List removeItem abowman BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 4 February 5th, 2010 11:18 AM
ToDo List setting the focus MMC2 BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 5 June 2nd, 2009 10:17 PM
Chapter 4 Customising Your Todo List MMC2 BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 0 May 12th, 2009 08:34 AM



All times are GMT -4. The time now is 10:06 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.