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


Bondi Widget porting example - geolocation API

From Nokia Developer 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 (geo.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 geo-location and file-system functions. It gets the location via GPS, saves the location to file-system and displays a map based on the given latitude and longitude.

NOTE: The Javascript wrapper library currently supports only geo-location functions, file-system functions are not supported.

1. Download the .wgt package

The Here I am! widget package can be found by following this http://bondi.omtp.org/widget-gallery/Lists/Widgets/Attachments/7/geo.wgt link. This porting example was written using the Here I am! widget version 1.0. The link may require login credentials for the Bondi website.

2. Rename and unzip the Here I am! widget archive


3. Create info.plist manifest file



    <string>Here I am!</string>
  5. This widget requires network access so it should be set to true.
    <true />
  6. Rename the icon from aplix.png to icon.png.
  7. Save the file.

4. Add Javascript wrapper libraries

  1. Copy Bondi.txt and Platformservices.txt and save them to the widget's root directory. Change the extensions from *.txt to *.js.
  2. Add the following lines inside <head> element in main HTML file:

5. Packaging

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

6. Deploy

Upload the widget to your mobile device and install.


49 page views in the last 30 days.