Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

New Developer
Posts: 20
Registered: ‎08-18-2008
My Device: Not Specified

Options and Back button events are not found


i am developing a Midlet application and using a  javax.microedition.lcdui.Canvas class. All the key events are coming in my overrided function of Keypressed() but i didn't get any button pressed event when i pressed the back button or the options button on the blackberry device.

Is their is any method through which i can get these keyevents?



Zeeshan Akhtar 

BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Options and Back button events are not found

The behaviour you are seeing is by design.  These buttons can be captured in a BlackBerry CLDC application, but not within a MIDlet.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker