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 June 5th, 2010, 12:48 AM
Registered User
 
Join Date: Jun 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problems w/ Force Close on Todo List Chapter 2

I'm new to all this. So I'm trying to learn and I have the code correct in my eclipse IDE, but everytime I run the the app on the emulator it force closes without doing a thing. I checked my code again and i get these screens saying: "The JAR of this class file belongs to container 'Android 2.0' which does not allow modifications to source attachments on its entries. " Then it shows this:
// Compiled from View.java (version 1.5 : 49.0, no super bit)
public abstract static interface android.view.View$OnKeyListener {

// Method descriptor #4 (Landroid/view/View;ILandroid/view/KeyEvent;)Z
public abstract boolean onKey(android.view.View arg0, int arg1, android.view.KeyEvent arg2);

Inner classes:
[inner class info: #1 android/view/View$OnKeyListener, outer class info: #7 android/view/View
inner name: #9 OnKeyListener, accessflags: 1545 public abstract static]
}

Is this causing my problem? Any help would be nice.
Thanks
 
Old June 5th, 2010, 01:10 AM
Registered User
 
Join Date: Jun 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default New Info for my problem.

In the console view of eclipse i get this message when trying to run or debug my todo list app:

[2010-06-05 00:04:06 - Todo List] WARNING: Application does not specify an API level requirement!
[2010-06-05 00:04:06 - Todo List] Device API version is 5 (Android 2.0)


Maybe this can help whoever is looking at my problem.

Thanks again.
 
Old June 9th, 2010, 04:02 PM
Registered User
 
Join Date: Jun 2010
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Just starting myself, but see if this helps.......

When you set up your project did you set it to api level 5?

In your AndroidManifest.xml, is the minimum SDK entered,

<uses-sdk android:minSdkVersion="5" />

If nothing else you can try, Project -> Clean and then rerun the project to see if it works.

Last edited by anjisan; June 9th, 2010 at 04:36 PM..





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 4 ToDo List - modifying existing views floickelsheimer BOOK: Professional Android 2 Application Development 2 April 29th, 2010 11:34 AM
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
Chapter 4 Customising Your Todo List MMC2 BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 0 May 12th, 2009 08:34 AM





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