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 October 21st, 2010, 07:31 PM
Registered User
Join Date: Oct 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Earthquake Content Provider Chapter 7

This is driving me crazy. I just finished up the ContentProvider portion of the Earthquake example in Chapter 7 and this won't build because Eclipse is apparently being stupid.

Eclipse has marked this line:

throw new SQLException("Could not insert row into " + uri);
in EarthquakeProvider.insert() as an error and refuses to build. Page 234 near the bottom. It's saying that it's an "Uncaught exception" and wants me to put a try, catch block around it. This is ridiculous and I can't seem to find a way to tell Eclipse to ignore this and run the damn application.

So, 2 parts here.
  1. Can someone help me tell Eclipse to go F itself and ignore the fact that the exception is not handled?
  2. Is this the proper behavior for this method? Should I actually return null instead?

Thanks in advance for any help you can offer.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 7 Earthquake 2, Earthquake.java, error onActivityResult dbomberg BOOK: Professional Android 2 Application Development 2 November 30th, 2012 05:52 AM
Please help: Chapter 9 Earthquake 4 dahe BOOK: Professional Android 2 Application Development 0 July 21st, 2010 03:41 PM
Problem: Chapter 7 "Creating and Using an Earthquake Content Provider" (Page 232) DrGaribaldi BOOK: Professional Android 2 Application Development 0 June 17th, 2010 04:07 AM
Does the content provider allow for MySql synchronization? Porjung BOOK: Professional Android 2 Application Development 2 April 7th, 2010 08:59 PM
Chapter 6 Earthquake using Provider abowman BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 0 March 9th, 2009 05:19 PM

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