

Revision as of 01:58, 5 July 2012 by hamishwillee (Talk | contribs)


Bondi Widget porting example - devicestatus API

From Wiki
Jump to: navigation, search
Article Metadata
Created: User:Miasa (18 Nov 2009)
Last edited: hamishwillee (05 Jul 2012)


Reasons: hamishwillee (01 Jun 2011)
The article is dependent on a wgt package from Bondi that is no longer available (Charge.wgt) because the site has merged with another. If anyone can find the linked package this header can be removed.



This is an example of porting a Bondi Widget to Nokia WRT using the guide found here. The example widget uses Bondi API specific device status functions. It gets charging status of battery, indicating whether the phone's battery is being charged or not.

1. Download the .wgt package

The Charge! widget package can be found by following this link. This porting example was written using the Charge! widget version 1.0. The link may require login credentials for the Bondi website.

2. Rename and unzip the Test widget archive


3. Create info.plist manifest file



  4. The HTML-file can be found in the src attribute of <content> element.
    <false />
  6. Save the file.

4. Add Javascript wrapper library

  1. Copy Bondi.txt and save it to the widget's root directory. Change the extension from *.txt to *.js.
  2. Add the following line inside <head> element in main HTML file:
<script type="text/javascript" src="Bondi.js"></script>

5. Packaging

Re-zip the containing Charge! widget folder and change the file extension from *.zip to *.wgz.

6. Deploy

Upload the widget to your mobile device and install.

Here is an example of the ported widget. Remember to change the extension to *.wgz before installing.

This page was last modified on 5 July 2012, at 01:58.
107 page views in the last 30 days.

Was this page helpful?



Thank you!

We appreciate your feedback.