Wrox Programmer Forums
|
BOOK: Beginning Android Application Development
This is the forum to discuss the Wrox book Beginning Android Application Development by Wei-Meng Lee; ISBN: 978-1-1180-1711-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Android 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 January 23rd, 2012, 02:46 PM
Registered User
 
Join Date: Jan 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default R.drawable.icon Error

Hi,
I had this issue earlier on in the book, but by deleting the line I managed to get the program to compile.
Now I have hit the same problem, and the solution doesn't appear that simple as last time.

I'm currently on p.76 (chpt. 2), I get an error on the 'R.drawable.icon'
"icon can not be resolved, or is not a field"
Code:
Notification notif = new Notification(
    			R.drawable.icon,
    			"Reminder: Meeting Starts in under 5 minutes",
    			System.currentTimeMillis());
    	CharSequence from = "System Alarm";
    	CharSequence message = "Meeting with customer at 3pm...";
I can't modify the R.java file, as this is automatically generated, so generates a new version each time I try to edit.

If anyone knows the cause to this error, and a solution. It would be very much appreciated.
Thanks
Dave
 
Old January 23rd, 2012, 02:50 PM
Registered User
 
Join Date: Jan 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just found the solution to this in another post
Not to worry





Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to run color drawable xml code page 111 sagar2808 BOOK: Professional Android 2 Application Development 1 August 18th, 2011 09:30 AM
A solid red Drawable resource solo BOOK: Professional Android 2 Application Development 1 June 15th, 2011 09:04 PM
How to Add the 'Start Without Debugging' icon next to 'Start With Debugging' icon btcomp BOOK: Beginning ASP.NET 4 : in C# and VB 1 August 1st, 2010 03:41 PM
ICON question ricespn ASP.NET 2.0 Basics 0 October 20th, 2006 01:45 PM
Solution Icon Dhodie VB.NET 2002/2003 Basics 4 November 20th, 2003 11:48 AM





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