Wrox Programmer Forums
|
BOOK: Professional Android 4 Application Development
This is the forum to discuss the Wrox book Professional Android 4 Application Development Reto Meier; ISBN: 978-1-1181-0227-5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Android 4 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 July 17th, 2012, 03:37 PM
Registered User
 
Join Date: Jun 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default BasicViews6 Java Code

The Java code in the book uses @Override in two places. But the Eclipse IDE gives me an error, and will not execute until I remove the @Override. Has anybody else had this problem with the code?

Code:
public void onItemSelected(AdapterView<?> arg0, 
		           View arg1, int arg2, long arg3)
{
   int index = arg0.getSelectedItemPosition();
   Toast.makeText(getBaseContext(),"You have selected item : " + 
      presidents[index],Toast.LENGTH_SHORT).show();
}
			
public void onNothingSelected(AdapterView<?> arg0) { }
		});
 
Old July 26th, 2012, 01:17 AM
Registered User
 
Join Date: Jul 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What is the exact eclipse error message?
Are you using a JDK version 6 recommended in the book?
Is your eclipse properly configured to use your JDK?

Last edited by CesarHernandezGt; July 26th, 2012 at 01:18 AM.. Reason: Erasing quotation





Similar Threads
Thread Thread Starter Forum Replies Last Post
JAVA code download for JAVA by Horton alan4100 Java Basics 0 February 1st, 2012 01:25 PM
PKCS5Scheme1Test Java Code? boy18nj BOOK: Beginning Cryptography with Java 1 June 6th, 2011 12:47 AM
Java Code for Banking azaira022 Java Basics 0 August 25th, 2009 02:25 AM
Java Code - Wrox - Beginning JAVA - Ivor Horton ponguru Java Databases 3 May 18th, 2006 12:30 PM





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