Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a space shooter game for Android and I want to implement it as a live wallpaper. Any ideas on how this can be done?

Or better yet can anyone help me / provide a template that calls a "ship" object that fires missile? I'll do the rest from there onwards. I just need it as a starting point for learning Android.

share|improve this question
I too enjoy cutting my battery life in half. – AttackingHobo Sep 16 '11 at 5:41
XD XD XD aha ha ha! – user943974 Sep 16 '11 at 7:34

The first Google hit I got for live wallpaper api android gives a good overview and links to example code.

share|improve this answer
It only refers to the Cube Live Wallpaper which basically deals with actual drawing on canvas, what I wanted to achieve is to call a class (Ship class) into the Wallpaper. ^^, – user943974 Sep 16 '11 at 4:07
@user943974, why does the obvious approach of calling the Ship constructor not work? – Peter Taylor Sep 16 '11 at 5:58
I'm calling the ship class inside the c = holder.lockCanvas which goes something like: shipS.draw(c); where shipS = the ship class. Can you please show me the right way of "calling the Ship constructor" it might be the solution I'm looking for. – user943974 Sep 16 '11 at 7:39
@user943974, I get the impression that the question you asked isn't really the real question, which is "What's wrong with the code I've written?". How about you create a small but complete program which demonstrates your problem and (if that doesn't in itself help you solve it) post on StackOverflow? – Peter Taylor Sep 16 '11 at 9:12
I thought it would be more convenient if I could see a Live Wallpaper Template that does something like my specification. Then, I could adapt from there, configure my missile, movement, speed classes to be compatible with the one provided. ^^, – user943974 Sep 16 '11 at 9:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.