Contents |
To help the developing of WidSets widgets, a developer kit has been created. The SDK is available for download at Forum Nokia/WidSets SDK.
Writing the code for a WidSets widget requires only a text editor, for example, NotePad is sufficient. However, using a third-party editor that supports XML provides a number of utility functionalities, such as row numbering, syntax highlight, etc., and makes coding more convenient. The WidSets SDK comes with code syntax templates and code highlight support for UltraEdit and EditPlus editors.
Developer kit
Devkit consists of the following components:
Downloading the SDK is possible even if you have not registered as a WidSets user yet and created an account. However, being able to connect to the WidSets server and taking the SDK into full use requires a login with the account credentials.
To register, go to the developer site at http://www.widsets.com and click the "Register and download" button. Agree to Terms of Service. During the registration process you will need your phone handy to download the WidSet client via one of the methods that will be displayed. Follow the instructions given.
The SDK is distributed as a ZIP file. You can download the latest version from the Forum Nokia site. Remember to read Terms of Service the prior to downloading the SDK. The legal wording is known to differ slightly between client and SDK use
The main page for WidSets developers under the main site is located at http://www.widsets.com/developers.html.
To install the WidSets SDK, simply unzip the package into your local drive under a directory of your choice.
The WidSets SDK is a light action packed set of tools, documents, and examples that get you into the world of mobile widgets.
Development requirements
Supported platforms
The devkit has been developed to work under any platform that supports Java. If you run into any problems, please ensure that your runtime is at least 1.4.
Syntax highlighting
There are some syntax highlighting tools for the WidSets Scripting Language available, found in the devkit folder for the following editors GNU Emacs, EditPlus, UltraEdit. See
Editor Syntax Configuration
Use cases:
devkit --proxy pryxyaddr:port --auth usr pwd --site default login usr pwd
devkit upload widclock
To run the SDK, open a command prompt (Windows) or open new shell (Unix), type the command devkit, and press Enter. As a result, a list of all available options and commands with a short description will be displayed on the screen.
Note: This mechanism for loading language properties is for testing purposes only. The localization of the script can be verified this way. @keyword strings can be inserted into the code and the actual values for the keywords will come from the properties file.
DevKit uses the following syntax:
devkit <options> command <arguments>
If you are behind proxy, or VPN tunnel, you need to set the options described in the following step before the command (and its arguments) you are about to execute.
Let’s go through a few steps to setup the DevKit in your environment and login to the WidSets server with your WidSets account.
Set the proxy parameter:
devkit --proxy yourproxyaddress:port <COMMAND>
devkit –-noproxy <COMMAND>
devkit –-tunnel <COMMAND>
devkit login yourusername yourpassword
Note 1: Make a login.bat file with the @echo option set "off" to avoid retyping this every time you login and to hide your password.
Note 2: Usually when the SDK prints out "Connection to [URL] could not be established in timely manner." it means that you are behind a firewall and need to configure a http proxy.
To see the SDK emulator in action, type:
devkit run or to enable log window; devkit runw
An example configuration file
# needed values login.url=http\://developer.widsets.com/dl/devkitjad # url where the jad file is read (connectivity details) upload.login.url=http\://developer.widsets.com/login.dox # url used for login upload.url=http\://developer.widsets.com/actualDevUpload # url used when uploading widgets sync.url=http\://developer.widsets.com/updatePhone.dox # url used for calling a synchronization timeout.socket=8000 # timeout for socket connection timeout.connect=4000 # timeout for http connection via=83.145.232.75\:443 # tunnel ip used for tunneling socket traffic through a gateway tools.version=0.1 # these can be created with the devkit tool from the above username=your_username # username password=your_password_here # password proxy=yourproxy.site.com\:8080 # proxy configuration device=cool # skin used in the emulator tools.version=0.1 window.emulator=1076,266 window.log=0,0,500,700 # log window dimensions last.login=1171015273343 # JAD-properties from the system MicroEdition-Configuration=CLDC-1.0 Manifest-Version=1.0 MIDlet-Jar-URL=lift.jar MIDlet-Name=WidSets MIDlet-1=WidSets, icon.png, widsets.Widsets MIDlet-Vendor=WidSets MIDlet-Version= MIDlet-Jar-Size=0 MicroEdition-Profile=MIDP-2.0 queue=lift/lift/Developer/queue # which queue is used (user specific value) url=socket\://developer.widsets.com\:2081 # socket url from the jad-file url2=http\://developer.widsets.com\:2080/comm # http url from the jad-file key=1ff3243219b133f008202e821f14df90ec9c76c5374fee0d6152f61dc0677175 # encryption key value used for authenticating the user
On some occasions the developers may run into RMS related problems. To clear the RMS of the WidSets client running under the emulator, user can either manually delete the contents of the skin folder or just simply delete the whole folder
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| S60 3rd Edition <not available> | proxima1 | Symbian Tools & SDKs | 19 | 2006-10-03 07:41 |
| Carbide.c++ and Series 80 SDK | rjk@bigpond.net.au | Carbide.c++ and CodeWarrior Tools | 2 | 2006-02-24 13:41 |
| Ok, finaly it works. | yzisman | General Symbian C++ | 0 | 2004-09-01 14:14 |
| Which version of SDK to use (Cannot decide) | hammadkb | PC Suite API and PC Connectivity SDK | 1 | 2003-09-25 15:29 |
| How to use two mobile phones with sdk 2.1 | waheedfourteen | PC Suite API and PC Connectivity SDK | 0 | 2003-06-10 13:11 |