Tools

Namespaces

Variants

Views

Actions

Search

Contents

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Scalable 2D Vector Graphics API

Comments

Generate correctly interpretable SVGs

Does any one else have a _lot_ of issues using SVG created with Adobe Illustrator and Ikivo ?

> For which platform? Series 40 or S60?
What does it mean "a lot"? Could you please describe what kind of problems?
Are you sure that you output your SVG files to SVGT 1.1+ format? S60 supports 1.1+. In S60, you can also view SVG files by opening them via File Manager. This will bypass the JSR-226.

S60 3ed FP 1 SDK has a problem with the content generated by Ikivo. The issue is related to the attribute 'values' for 'animateMotion' and specifying the 'dur' attribute with float values. Ikivo seems to be generate default values to the attributes of the element.

S60 3rd ed FP 1 has some other known issues which are documented at: Portal:Java ME Known Issues Most of them will be corrected in S60 3rd ed FP2. Some phones (or firmware updates) based on 3rd ed FP 1 may already contain the fixes.

As I understand it this article is here just to point out existence of such API in Java ME and documentation of it on Nokia Developer website, which is fine, but I'd like to see and know more before I click through to - so simplest examples and maybe some pictures showing graphics using this API would be great.
--warjan
22:20, 3 September 2009 (UTC)

SVG API (JSR 226) is a great extension to Java ME that allows to develop the User Interface of the application in a more powerful way, using an SVG document. This API supports SVG Profile SVG Tiny, version 1.1.

With SVG you can design the user interface in any design software, like the ones from Adobe and place them inside the mobile screen using Java ME. SVG files are automatically scaled to the phone screen and can have hotspots areas where the user can browse and fires an event that can be captured by a Midlet.

This API adds the SVGImage and ScalableGraphics classes to manage SVG files. You can browse, add and remove elements from the graphics dynamically using Java and DOM.