Wrox Programmer Forums
|
BOOK: Beginning Android Application Development
This is the forum to discuss the Wrox book Beginning Android Application Development by Wei-Meng Lee; ISBN: 978-1-1180-1711-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Android 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 June 26th, 2011, 03:30 PM
Registered User
 
Join Date: Jun 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 2 page 36 error

I'm new to Android development and Java. My previous experience has been with Visual Basic only. I say that for you to be gentle if I have done something incredibly stupid.

The line the reads:

Public void onClick(DialogInterface dialog, int which, boolean isChecked) {

It will not allow the program to run. The error listed is as follows;

Multiple markers at this line
- implements android.content.DialogInterface.OnMultiChoiceClick Listener.onClick
- The method onClick(DialogInterface, int, boolean) of type new DialogInterface.OnMultiChoiceClickListener(){} must override a superclass
method

More information: I am running on a MacBook Pro on the Apple side not the Windows (running in a Virtual machine VMware Fusion). I have imported the code from your website. I have found one other place where the code imported does not match the book. Your imported code shows this:
public void onClick(View v) {
showDialog(1);

The book has : showDialog(0).
 
Old June 26th, 2011, 04:23 PM
Registered User
 
Join Date: Jun 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Found my own answer

You must erase the @Override command before the line for it to work properly. This must be an error in both the book and the supplied code files.

I am relieved to find out I didn't do something stupid.

However I'm not happy that they did.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 4 - Page 114-115 ERROR learner800 BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 0 February 19th, 2011 02:01 PM
Page 36 errata Patrick Cambria BOOK: Professional Visual Basic 2008 ISBN: 978-0-470-19136-1 0 December 24th, 2008 09:13 AM
Error: Chapter 3 (try it out) page 85 dea0303 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 August 29th, 2006 05:47 PM
Chapter 9 Try It Out Error, page 325 VictorVictor BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 3 March 22nd, 2006 02:22 PM





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