help, i'm having trouble with commands in canvas. i have a canvas class that implements commandListener, but my setCommandListener(this) call generates and error. it said "cannot resolve symbol: method setCommandListener(Game)". Game is my canvas class name. if i remove the setCommandListener call, but keeps the addCommand()s, it went ok. the commands are added to the canvas. why is this happening?
posted 14 years ago
Your Game Canvas class must implements the CommandListener interface . Check it out first Regards,