05-07-2011 12:49 AM
Alright I've got a question about adding a menu item to the Browser from a webworks app.
I know I can do it using Java....and I'm familiar with creating/using extensions in webworks applications...
But say, for example; I create a Java extension which adds menu items to the browser....and I add that extension into my webworks app using the following:
<feature id="sample.extension" required="true" version="1.0.0"/>
...How exactly will i invoke the Java code to add the menu items to the browser, using javascript? and will the menu items always be in the browser menu? or only when the app is open?
05-07-2011 03:36 AM - edited 05-07-2011 03:38 AM
First, if you said that you are familiar creating/using extensions in webworks applications, so you should know how to invoke the Java codes using javascript.
Second, to create Menu Item, why don't you using the built-in Webworks API : http://www.blackberry.com/developers/docs/widgetap
05-07-2011 12:58 PM
I want to create a permanent menu item in the browser, not just in the webworks app itself....which it seems is not possible without doing via an extension.
My assumption is that I would create the extension, and then have the extension called from a background service with this in the config:
<rim:background src="background.html" runOnStartup="true" />
Does this all sound right?
I just wanted some confirmation, thats all.
05-09-2011 09:39 AM
Hi tensioncore,
Yes you are correct ![]()