by yinglcs » Sun Nov 16, 2008 4:23 am
Hi,
I copy the source attached in the thread and try to get it to work in Andriod sdk 1.0 on eclipse on ubunutu:
I get the following compile errors:
1. i get a bunch of R.xxxx.xxx cannot be resolved. Where can I get the R file generated?
2. how to change the drawArc() with the right parameters?
3. how to change the
@Override
public boolean onMenuItemSelected(int featureId, Item item) {
...
}
Description Resource Path Location Type
Item cannot be resolved to a type PizzaTimer.java PizzaTimer/src/com/test line 94 Java Problem
NotificationManager.LENGTH_LONG cannot be resolved PizzaTimer.java PizzaTimer/src/com/test line 59 Java Problem
R.drawable.pizza cannot be resolved PizzaView.java PizzaTimer/src/com/test line 33 Java Problem
R.string.menu_reset cannot be resolved PizzaTimer.java PizzaTimer/src/com/test line 89 Java Problem
R.string.pizza_countdown_end cannot be resolved PizzaView.java PizzaTimer/src/com/test line 73 Java Problem
R.string.pizza_notification_text cannot be resolved PizzaTimer.java PizzaTimer/src/com/test line 58 Java Problem
The method drawArc(RectF, float, float, boolean, Paint) in the type Canvas is not applicable for the arguments (RectF, int, float, Paint) PizzaView.java PizzaTimer/src/com/test line 94 Java Problem
The method drawArc(RectF, float, float, boolean, Paint) in the type Canvas is not applicable for the arguments (RectF, int, float, Paint) PizzaView.java PizzaTimer/src/com/test line 98 Java Problem
The method onMenuItemSelected(int, Item) of type PizzaTimer must override or implement a supertype method PizzaTimer.java PizzaTimer/src/com/test line 94 Java Problem
Thank you.