10-26-2012 05:36 AM
I am having an issue with bb back button and menu. We have override the back button event according to our requirement. It works fine in all the device except for bb7 devices.
The issue is that if I open the menu(using device menu button) and then click on device back button the menu does not close.
Here is the code
blackberry.System.Event.onHardwareKey(blackberry.System.Event.KEY_BACK, goBack);
my goBack() function is simple
function goBack(){var res = hist.pop();if(res){ histBlock =true; gotoObj(res);//does something }else{exit();}}
And for menu button i have not attached any Events
Is there any way i can call close menu from goBack(). Please let me know any work around for the same
I am new to bb development using web work,
10-26-2012 06:29 AM
10-30-2012 03:13 AM
I think there is some problem in the simulator.
May be it will not install well.
Please reinstall the Simulator and check once. Hope it will work fine.
Thanks & Regards,
Himansu
10-30-2012 06:31 AM
Hi,
Thank you for the reply..
I am testing it on the real device not in the simulator.
Issue is seen when we build the application in BlackBerry WebWorks SDK 2.3.0.9 . i have tested in BlackBerry WebWorks SDK 2.0 it works... i guess it has something to do with sdk version
Regards
Sudeep