Share My Creation Sprite Animation in Live Walpaper

Tom Christman

Active Member
Licensed User
I was playing around with Erel's fantastic new LiveWallpaper library and example, and came up with a code snippet to add sprite animation to LiveWallpaper. The screen shots show a margarita glass emptying (the sprite animation} and 2 rotating logos (rotating bitmap). This code was developed for 800x480 pad, but can be modified for different screen. The zip file is also included with the code example which also contains Erel's code somewhat modified. Hopefully it all works and the comments are inclusive.
 

Attachments

grobi71

Member
Licensed User
Smiley.jpg

Hallo Tom,

really nice, but:
i think you put the wrong Smiley4 into the zip. You have a JPG in the zip file, but Smiley4.png declared in the Source.

@Erel
is it possible to draw a background picture in the live wallpaper that is not destroyed after moving something in the front ?

Grobi71
 
Last edited:

magarcan

Active Member
Licensed User
:sign0013:You're correct Grobi71....Thanks for pointing that out. I have corrected that in this version.
This doesn't work for me:
Compiling code. 0.17
Using existing AndroidManifest.xml.
(Project - Do Not Overwrite Manifest option is checked)
AndroidManifest-Example.xml file will be created instead.
Generating R file. Error
AndroidManifest.xml:34: error: Error: No resource found that matches the given name (at 'resource' with value '@xml/wallpaper').
 

Tom Christman

Active Member
Licensed User
Users who download this project should set objects\res\xml\wallpaper.xml to be readonly before running it. Did you do this?
If not download the zip again.
 

Tom Christman

Active Member
Licensed User
As Erel pointed out in his post to the original Thread, "Users who download this project should set objects\res\xml\wallpaper.xml to be readonly before running it." Perhaps this is the problem. Re loading the zip file and setting wallpaper.xml to readonly before running should take care of it
 
Top