These simple example MIDlets show you how to use the different features of the Scalable 2D Vector Graphics API (M2G API):
Creating and displaying a static SVG image (Hello World MIDlet)
Loading and manipulating a pre-generated static SVG image (Load Static Image MIDlet)
Creating, playing, and controlling an animated SVG image (SVG Animator MIDlet)
The MIDlets are packaged in a single MIDlet suite.
Figure: SVGExamples MIDlet running on a Nokia Asha software platform device
For tutorials that show you how to create the MIDlets, see:
This MIDlet suite is provided in two versions:
The regular version is compatible with Series 40 3rd Edition Feature Pack 1 devices and newer.
The Series 40 full touch version is only compatible with Java Runtime 2.0.0 for Series 40 devices and with Java Runtime for Nokia Asha software platform (1.0) for Nokia Asha software platform devices and newer.
This MIDlet suite has been tested on the following devices:
Nokia Asha 305 on Nokia Asha software platform (Java Runtime 2.0.0 for Series 40)
Nokia X3-02 (Series 40 6th Edition Feature Pack 1)
The MIDlet suite project files are packaged as a zip file. The zip file includes two projects: the regular version and the Series 40 full touch version. To download the zip file, click the following link:
The MIDlet suite consists of the following classes (click to view the full source code):
Note: The source code is from the Nokia Asha software platform version of the MIDlet. To view the source code of the regular version, see the source code files in the zip file.
The MIDlet suite uses the following SVG files (click to view the full source code):