05-01-2012 10:26 AM
hi,
I am new to the BB development world and need some help. We are considering developing some thin client, browser based app. I want to know, Can we customize menu options in blackberry browser based on the application?
In other words I want to show menu options in BB browser based on my app.
Please let me know if there is any way to achieve this.
Thanks.
05-03-2012 12:12 PM
Hi there,
Within your application, you can integrate custom menu items using the WebWorks APIs:
https://bdsc.webapps.blackberry.com/html5/apis/bla
However, if you want to integrate menu items with the OS directly, you will need to write an extension using the Java APIs:
The Java APIs you would need to use are documented here:
Please let me know if you have any questions.
05-03-2012 05:14 PM
05-03-2012 05:28 PM
You may be able to loop through the contents of a Menu Object and call setOrdinal on its MenuItem children:
http://www.blackberry.com/developers/docs/7.0.0api
This should allow you to reorganize the ordinals (i.e. positions) of the items. Though whether you'll be able to override system menu items I can not make any guarantees. This would be one that would have to be tried and tested to make sure.