Skip to main content

Animation problem in lwuit 1.3

3 replies [Last post]
tfmahesh
Offline
Joined: 2009-11-16
Points: 0

Hi

I had developed an application using lwuit 1.0 which had some gif images added as animation in the theme(res) file. I migrated the app to lwuit 1.3 and all animation stopped working. I tried to re-create the theme file again, but still the problem remains.

Am I missing something in 1.3?

- Mahesh

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tfmahesh
Offline
Joined: 2009-11-16
Points: 0

More info regarding this problem..

Am using getImage() method of Resources class to get the gif image from the theme file and setting it as an icon in a Label. Previously it was animating in LWUIT 1.0, now the gif image does not animate.

one more observation is that, in touch screen devices(like Nokia 5800), if i keep tapping the screen, it animates.

May be someone could put some light on it..

-Mahesh

tfmahesh
Offline
Joined: 2009-11-16
Points: 0

Found a work-around for this issue, just in case someone might need. I just enabled ticker for the label and it started animating.

vprise
Offline
Joined: 2003-11-07
Points: 0

LWUIT 1.3 is less eager about registering animations for increased efficiency. Use parentForm.registerAnimated(cmp)