Felipe Andrade – Mobile Developer Cross-platform development: WRT | Flash Lite | Python | Symbian | Qt | Maemo | Meego

6Aug/073

Working with animations in Flash Lite and Java ME

These pictures below are a result of an inside look at Flash Lite and Java ME features. I've written a small guide to ensure that Flash Lite and Java ME developers know the differences and pitfalls of each language.

I want to learn more from developers around the world about all common problems in this field so I kept an open discussion. As soon as possible I'll be posting the source files.

Flash Lite timeline based animation

flashlite_frame_based.png

Problem

Sometimes the refresh rate don't leave the animation clear.

Solution

Increase the frame rate.

Discussion

Send your opinion!

.
.
.
.
.
.
.

Java based 'Frame by Frame' animation (Sprite class)

tiled_owner_flatten.png

Problem
The whole process to porting the graphics among many screen resolutions is very tedious and complex.

Solution

Vector graphics can be used instead of the bitmap graphics but the SVG API is only available in a small set of java enabled devices.

Discussion

Send your opinion.

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

Comments (3) Trackbacks (3)
  1. Ciao Felipe,

    you can change the rendering quality during animation, which might help to maintain a smooth animation.

    Alessandro

  2. Must be said that J2ME Images and Sprites cannot be freely scaled/rotated. The transformations supported are mirroring and 90 degrees based rotation (90,180,270).
    There are scaling algorithms that can be easily implemented, but the fastest ones are based on direct access to the image bitmap data. Some S60 devices have buggy implementations of this kind of access (6600 and 7610, for instance), causing the phone to crash. Slower implementations (based on Graphics drawRegion() method) are also available, but they cannot handle transparency.

    On the Flash Lite side, image (and everything related to it) handling is one of the GREATEST points. Nothing to mention.

  3. Ângelo, as you said scale/rotation is a great point in Flash Lite but I think that direct access to bitmap data is a lack.

    Java ME has great API’s to image manipulation but slower and buggy implementations. At the business side is this really valuable? Is the porting process worth the hype?

    8 out of 10 new phones shipping today are Java Powered, why this make the difference if the porting process is a fault in Java ME?


Leave a comment


Switch to our mobile site