Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 17th, 2012, 03:37 PM
Registered User
Points: 16, Level: 1
Points: 16, Level: 1 Points: 16, Level: 1 Points: 16, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2012
Location: San Antonio, Texas
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) { }
		});
Reply With Quote
  #2 (permalink)  
Old July 26th, 2012, 01:17 AM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2012
Location: Guatemala
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:38 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.