11-11-2009 07:55 AM - edited 11-11-2009 07:56 AM
hai Guys,
I have a problem on How to implement keyListener for Canvas Midlet, I have a canvas class the scroll seems doesn't work. I have already put
Application.getApplication().addKeyListener( this ) ;
in canvas class but still no effect at all.
I have 1 question also on How To print out the System.out.println("debug"); on BlackBerry Simulator Output Console.
I Use Eclipse ganyMede and ejde 4.6.0
Thanks for Your help ![]()
Regards,
Purbo
11-11-2009 08:13 AM
11-11-2009 10:53 PM
simon_hain wrote:
did you check the implementation notes? http://www.blackberry.com/developers/docs/5.0.0api/javax/microedition/lcdui/Canvas.html
Thanks simon_hain I'll try I have to make sure that
keyPressed and keyReleased methods of the current Canvas object are called with the keyCode parameter having a value of Canvas.DOWN. by adding
protected void keyPressed(int keyCode) {
System.out.println("Keypress : "+ keyCode);
But the system doesn't print anything on console screen windows, is it true that this method wasn't called when I Scroll using trackpad ?
Thanks for Your Answer