Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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
  #1 (permalink)  
Old July 22nd, 2010, 11:33 PM
Registered User
 
Join Date: Oct 2009
Posts: 7
Thanks: 0
Thanked 1 Time in 1 Post
Default Chapter 9 - Earthquake - TimerTask Error

I am getting the following error when trying to re-run the app (it loads fine the first time), then I have to uninstall the app completely and reinstall it in order for it to work again

Code:
ERROR/AndroidRuntime(13041): Caused by: java.lang.IllegalStateException: TimerTask is scheduled already
So I'm assuming that this line isn't working right:
Code:
if(lastLookup == null || lastLookup.getStatus().equals(AsyncTask.Status.FINISHED)) {
  #2 (permalink)  
Old November 2nd, 2010, 04:49 PM
Registered User
 
Join Date: Oct 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think I got this figured out. Check out my reply in this thread:

CH 9 - Earthquake 2 (Async Task exmample) does not work
  #3 (permalink)  
Old November 2nd, 2010, 04:50 PM
Registered User
 
Join Date: Oct 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hmmm, looks like my post was moderated. I would imagine it should show up sometime soon...


Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help: Chapter 9 Earthquake 4 dahe BOOK: Professional Android 2 Application Development 0 July 21st, 2010 03:41 PM
chapter 5 Earthquake EricTapia BOOK: Professional Android 2 Application Development 2 April 14th, 2010 12:47 AM
Chapter 8 Earthquake Notification woods620 BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 1 December 23rd, 2009 09:57 AM
Chapter 6 Earthquake using Provider abowman BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 0 March 9th, 2009 05:19 PM
Chapter 6 Sample Earthquake 2 sunrain BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 2 January 31st, 2009 04:06 PM





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