| BONDI widget tutorial featuring the LiMo SDK |
| Written by Kai Hendry, Aplix |
| Friday, 16 October 2009 14:00 |
|
The easiest way to create a widget is with the LiMo BONDI SDK, available currently for the Windows and Linux platforms, with MacOSX support in the new year. First install the SDK and then create a New BONDI Widget project. The SDK can be a bit overwhelming at first, especially if you are not familiar with the Eclipse Integrated Development Environment (IDE). There is documentation contained within the SDK, as well as documentation on the LiMo BONDI SDK Website. Let's assume you know about Web technologies like HTML, CSS & Javascript and crack on. I suppose you're also keen to try out some of the exciting native functionality that BONDI APIs provide. However, since the SDK only supports filesystem and appconfig emulation in the "Phone view" currently, we are going to only use appconfig, which you can think of as the precursor to the Storage interface. Building Award Winning Widgets Lets write an award winning widget! A simple widget to store generated passwords for Websites, telephone banking and secret pagan meetings of the occult. We essentially need two bits of functionality:
Luckily I've done the Googling (the hard work) for you:
So please copy&paste the above files in your new project's respective files. Next, we need to sort out the configuration document, by clicking the Since we use the appconfig feature, we need to declare that in the API dependencies view. Just check the top appconfig feature, save and try out your widget by double clicking Here you can generate a random password, and you should be able to copy the password in the above text area and save it. Imagine if you are starting the widget, you could automatically load a previously appconfig stored password list like:
There you have it! A BONDI Widget! In order to turn it into a winner, I recommend you style it and add some artwork. Remember widgets are just simple packages of Web content. Since you're not necessarily connected to the Internet, you need things like BONDI appconfig APIs to maintain state. The LiMo SDK is the best way for you to develop and test a BONDI widget!
|

