Java Reference
In-Depth Information
If we didn't make any mistakes during the programming phase, we
should see:
Required client version: 0.0.0
Compile OK
If you get any error messages, go back to the source code and correct
it, then try compiling it again until you are successful.
Once the source code compiles correctly, we are ready to run our
example widget in the emulator. For that, we need to log in to the WidSets
server: the widget is uploaded and run in the server context, with the
results being displayed in your emulator's mobile dashboard. Type in the
following command:
devkit login USERNAME PASSWORD
The username and password must be correct for your WidSets
account. You receive a success message, after which you can run the
application:
devkit run helloworld
The SDK compiles, packages and uploads the widget to the WidSets
server. Once the widget is installed correctly on your dashboard, the
emulator is opened so you can see the result. Navigate on the emulator's
dashboard and look for the Hello World widget.
By now you should feel comfortable enough with the development
process, so you can explore more deeply the possibilities of widget
development on the WidSets platform. Check the documentation at
wiki.forum.nokia.com/index.php/Category:WidSets for more details on
the WSL, devkit, available APIs and services, example widgets, and
many more. Reading this documentation will give you the background to
develop complex applications like the one we show in the next section.
A.4 Creating a Flickr Viewer
In this section, we put our newly-acquired WSL and WidSets skills to
use in creating a more complex application, Flickr Viewer. Our widget
allows users to search the Flickr website for pictures in categories which
interest them. Results are displayed in a list, with the pictures resized
to fit the small screen of a mobile device. Users are also able to save
a search and use it later, to speed up the searching process and save
typing.
Search WWH ::




Custom Search