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
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.