开发者

How can I create a JavaScript Blackberry Widget Extention?

开发者 https://www.devze.com 2022-12-08 18:04 出处:网络
In a recent blog post announcing Blackberry Widgets the following was said about getting Java library functionality in a Blackberry Widget (emphasis added by me):

In a recent blog post announcing Blackberry Widgets the following was said about getting Java library functionality in a Blackberry Widget (emphasis added by me):

What if RIM doesn't provide me with the JavaScript API I am looking for?

RIM will continue to add new JavaScript APIs for BlackBerry Widgets. Most will not require new BlackBerry Device Software upgrades to be used. Java developers can also create their own custom JavaScript BlackBerry Widget Extension to be packaged with their w开发者_如何学Goidget.

They also go on to describe the architecture of a packaged widget with the following diagram:

                                       

How can I implement a "Linked JavaScript Extension" and use it in a Widget?


You should check out The official Blackberry Widgets site which has some links to the documentation and API that you will been for developing widgets.

I've had a quick run through the demo app from their documentation and you basically write standard HTML, CSS and Javascript. The Javascript can then call API functions, and you setup which 'features' (using/include statements) can be accessed by setting up the config.xml file.


The answer to this is in a press release from RIM that came out yesterday.

Use the net.rim.device.api.script package interface.

0

精彩评论

暂无评论...
验证码 换一张
取 消