Hi, I have a midlet. In that I created object that extends
Canvas.In that canvas I added one command,when I click that
command the control is not coming to CommandAction() method
of that canvas. Can u suggest me any solution for this?

Answers were Sorted based on User's Feedback



Hi, I have a midlet. In that I created object that extends Canvas.In that canvas I added one comma..

Answer / sacihn

implements CommandListener and then
setCommandListener(this);
then control will go to commandAction()

Is This Answer Correct ?    10 Yes 0 No

Hi, I have a midlet. In that I created object that extends Canvas.In that canvas I added one comma..

Answer / oren

Implement CommandListener and set "this" to be a command
listener

Is This Answer Correct ?    8 Yes 2 No

Hi, I have a midlet. In that I created object that extends Canvas.In that canvas I added one comma..

Answer / neel

By the way, If this kind of problem may come if u have not
performed this steps..
1. implement your canvas from CommandListener interface..
2. Add command to canvas addCommand(cmdExit)
3. Resister your command bu using setCommandListener(this);
4. then implement the commandAction(Command c, Displayable
d) method, and provide full implementation for the required
command action..

Thnx..

Is This Answer Correct ?    4 Yes 0 No

Hi, I have a midlet. In that I created object that extends Canvas.In that canvas I added one comma..

Answer / data4pinto

extends CommandListener

Is This Answer Correct ?    6 Yes 8 No

Post New Answer

More J2ME Interview Questions

What is EDGE ?

1 Answers  


What is Generic Connection Framework

1 Answers  


What is PDCP ?

1 Answers  


Memory managment technique in j2me

0 Answers  


What is CDMA2000 ?

1 Answers  






What is iDEN

1 Answers  


What is API ?

7 Answers  


What is CVM

1 Answers  


which is the front end and back end in j2me?

1 Answers  


What is T9

1 Answers  


Give the name of classes of j2se which is not used in j2me

0 Answers  


Explain CVM ?

1 Answers  


Categories