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 12th, 2010, 08:50 AM
Registered User
 
Join Date: Mar 2010
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
Default Unable to run code for Chapter 9

Receiving these errors from logcat after I changed the typo on EarthQuake provider class

04-12 08:48:40.088: ERROR/ActivityThread(53): Failed to find provider info for android.server.checkin
04-12 08:48:40.208: ERROR/AndroidRuntime(355): ERROR: thread attach failed

04-12 08:48:43.528: ERROR/gralloc(53): [unregister] handle 0x4a73b8 still locked (state=40000001)
 
Old April 26th, 2010, 06:16 AM
Reto's Avatar
Wrox Author
 
Join Date: Oct 2008
Posts: 61
Thanks: 1
Thanked 7 Times in 6 Posts
Default

These errors aren't coming from the Earthquake app, but rather from the runtime.

The problem with the Earthquake project is that until Chapter 9 Earthquake 2 (pp303) it runs on the GUI thread -- meaning it can block user input for an unacceptable length of time. This can cause problems with other parts of the system and can cause Earthquake to Force Close.

Try this later example that moves everything to a background thread and things should improve dramatically!
__________________
Reto Meier

Author, "Professional Android 4 Application Development", Wrox, ©2012, 2010, 2008
@retomeier





Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to run code chapter 9, 10, 13 ttdevelop BOOK: Professional Android 2 Application Development 17 December 7th, 2012 05:14 PM
chapter 9th : unable to run gtalktester project sheelsadan BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 0 January 13th, 2010 02:31 AM
Unable to run Chapter 2 Example tkachuk BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 6 August 2nd, 2009 11:37 PM
How to run the chapter 10 (acegi) sample code? dleal BOOK: Professional Java Development with the Spring Framework 0 June 28th, 2006 10:50 AM
Chapter 15 - Code doesn't run marcohp BOOK: Beginning XML 3rd Edition 0 November 8th, 2005 03:41 PM





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