There is one pecular thing tht i have encountered and dont know how to solve it.it has occured atleast in pearl simulator.
when i click on the trackball and then on menu bittuon... two menus open up and both have the focus.Now if i click on the trackwheel,the simulator hangs up.i then have to exit the simulator altogether.
In my program i havent defined any menu items at all.
What exactly is the problem here and how can i solve it.Suggestion.The code is same as above with the suggested corrections by jfisher. I am also attaching a snapshot.

Could anyone suggest how i can handle it.

One more Q:
Can an application listen to keypad events when it is in the background?

There is one pecular thing tht i have encountered and dont know how to solve it.it has occured atleast in pearl simulator.
when i click on the trackball and then on menu bittuon... two menus open up and both have the focus.Now if i click on the trackwheel,the simulator hangs up.i then have to exit the simulator altogether.
In my program i havent defined any menu items at all.
What exactly is the problem here and how can i solve it.Suggestion.The code is same as above with the suggested corrections by jfisher. I am also attaching a snapshot.

Could anyone suggest how i can handle it.

One more Q:
Can an application listen to keypad events when it is in the background?

Can you just clarify one thing whether two menus popping out at the same time happened once or every time the application is launched in pearl simulator.

Is there no way by which i can make my application listen to the keys pressed events? like for example I want to bring my application to foreground on pressing certain key combinbations. Is thier no way an application can listen to key events?