Greetings fellow Droidheads and the like. I am working on a Live Wallpaper project that's getting more complex. I am curious: has anyone figured out a way to use Android's View Animation package (http://developer.android.com/guide/topics/graphics/view-animation.html) from within live wallpaper? It doesn't seem obvious to me that this is possible, in that it is a service rather than an activity, and you are given a surfaceholder to lockdown to get a canvas on which to draw--no way to setContentView, etc. The tween package seems to depend on views (i.e. the animation gets associated with the view itself, not the canvas, bitmap, etc.). Any thoughts? Thanks in advance. George
Is it possible to use Android's View Animation package (tween/frame) within Live Wallpaper?
983 Views Asked by George Freeman At
2
There are 2 best solutions below
2

I built a library that let you interpolate and animate any Java object, optimized for Android (without any garbage collection).
Since I'm not here to publicize a product (it's an open source lib, LGPL), I would encourage you to read my answer in this thread:
Android: tween animation of a bitmap
Tell me if it solves your problem :-)
Endeavoring to answer my own question... No, I do not think this is possible. I have tried hard, with no success, and I have reviewed many examples of other people's code, and never seen anyone take this approach. What's more, even if it worked, I now think it wouldn't be a good idea: it's better for live wallpapers to take responsibility for their own drawing, to precisely control timing issues, &c. George