Welcome!

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

Reply
Developer
Posts: 122
Registered: ‎11-12-2010
My Device: Dev Alpha
My Carrier: N/A
Accepted Solution

Closing the menu through code

Hi All

 

My app saves a screen shot of it self but this option is available from the menu. Therefore the screenshot includes the menu.

 

Is there anyway of closing the menu through code?

 

I have tried getMenu(Menu.INSTANCE_DEFAULT).close(); 

 

but no joy.

 

Please help - loosing hair rapidly.

Developer
Posts: 122
Registered: ‎11-12-2010
My Device: Dev Alpha
My Carrier: N/A

Re: Closing the menu through code

Found the answer, re-paint the screen :smileyhappy:

 

UiApplication.getUiApplication().repaint();

Developer
Posts: 543
Registered: ‎12-23-2010
My Device: Z10
My Carrier: Airtel

Re: Closing the menu through code

Then why don't you close this thread, that means mark it as solved.

 

Thanks.