12-11-2009 02:30 AM
Hi
In my application makeMenu() method, i am using menu.deleteAll() to delete all the default menus. If i run this code in 9530 (storm simulator) it shows onyl show keyboard and switch application menu, that is fine.
But if i run the code in other simulators it is showing <Empty Menu>.
Where focus is any where in the screen it shows the empty menu when i click on the menu button.I need to remove this <Empty Menu> also.
What i want is If i click on the menu button, it should not show anything( means it should not show <Empty Menu> , but in the storm if i click the menu button it has to show (Show keyboard and switch application).
Is there is anyway to solve this...?
Thanks
mindus
Solved! Go to Solution.
12-11-2009 04:22 AM
overwrite onMenu and return true.
12-11-2009 06:08 AM
Hi
Thanks for your reply.
But i need menu (showkeyboard/hidekeyboard, switch application ) in storm devices. If i make it onMenu and return true, it wont dispaly any thing in the storm device,
I want to display this menu (keyboard/switch application) in storm simulator , and other simulator i need to remove <Empty Menu>.
Thanks
12-14-2009 06:33 AM
Hi
Any more infomation about this issue...
12-14-2009 06:49 AM
hello,
Override
To delete empty menu override
public boolean keyDown(int keycode, int time) {
if(keycode == 268566528){ //key code of menu button
return true;
}
}
this wont display menu at all if you want menu override
protected void makeMenu(Menu menu, int instance){
}
delete the menu you dont want.. and your own.. if you want default menu do nothing..
If you got the solution mark thread as solved nad give kudos to author whose solutoin you accept
12-14-2009 07:18 AM
Hi sachin_r
Thanks for your reply.
I tried this below code what u given
public boolean keyDown(int keycode, int time) {
if(keycode == 268566528){ //key code of menu button
return true;
}
}
The problem is it will disable entire menu in all simulators.
But i need to show (switch application and Show/Hide keyboard) menu in 9530 and 9500 simulators.
In other simulator its fine for me ( to disable entire menu).
Any idea about this???
Thanks
mindus
12-15-2009 12:07 AM
Hi
Any other info about this issue?
is there is any way to do this.
12-17-2009 04:34 PM
You could use the DeviceInfo class to determine the BlackBerry model number and then return false in your keyDown method.