Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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.
 
Old April 14th, 2010, 12:35 AM
Authorized User
 
Join Date: Mar 2010
Posts: 16
Thanks: 0
Thanked 1 Time in 1 Post
Default

its findViewById not ByView
 
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.





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





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