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 November 14th, 2011, 03:15 AM
Registered User
 
Join Date: Nov 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Chapter 4 ToDo List Crash

I am at the end of Chapter 4 and testing the ToDo List application with the menus added. Whenever I press the DPAD center button, it crashes with an unexpected termination. During debugging, I find that when the code calls "cancelAdd()" it immediately returns without executing any instructions and then executes the "return true;" instruction immediately following the call to "cancelAdd()". It then leaves the "if" loop and executes the "return false;" statement. And... yes... I know... this shouldn't be possible.

I have double and triple-checked my code against the book, looked at the online errata listings, read the forums and compared my code against the downloadable examples from this site. My code seems to be correct to the best of my ability to determine.

If anyone can point me towards some new things to check or knows what causes this error I would greatly appreciate any help.

Thanks.

Ken
 
Old November 14th, 2011, 12:02 PM
Registered User
 
Join Date: Nov 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Fixed!

I found my own fix. Following the stack trace revealed that there was a problem during the inflation of the TodoListItemView. It turned out that in one place, it was spelled "ToDoListItemView" - with the "Do" capitalized. There were no indications at build time but at run time, the class was not found and the application crashed.

Now fixed and running as expected.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 7 ToDo List Code WDPetry BOOK: Professional Android 2 Application Development 3 February 28th, 2011 01:40 AM
Chapter 7 Todo List tinted BOOK: Professional Android 2 Application Development 2 August 26th, 2010 06:04 PM
Chapter 2 - Todo List error jerrod1225 BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 1 July 15th, 2010 07:17 PM
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





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