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