Simplest example of an Android live wallpaper [closed]

空扰寡人 提交于 2019-11-28 20:22:11

问题


I'm trying to make an android live wallpaper. I am looking for just a simple example that just displays a solid background and does nothing else to get me started. I've looked up quite a few tutorials but they all have preference activities and I can't get any of them to work. I've even tried removing everything that it does not need other than the required override functions. Can anyone post the code for just a simple live wallpaper or post a link to an example that definitely works.

I've been using the android emulator with version 2.1 sdk 7. It runs the cube live wallpaper that comes in the sdk, but when I create the cube project myself it doesn't work.

Thanks!!!


回答1:


check these may be helpful:

http://blog.androgames.net/58/android-live-wallpaper-tutorial/

http://www.codeproject.com/KB/android/AndroidLiveWallpaper.aspx

http://www.vogella.de/articles/AndroidLiveWallpaper/article.html




回答2:


Most of the time, the live wallpaper doesn't work in emulator. Try with a real device. Happened in my case.




回答3:


This one was decent but I still didn't get it to work..None of the Tutorials online are working for me they install and then say myWallpaper stopped working. It might have something to do with the new SDK.



来源:https://stackoverflow.com/questions/6728641/simplest-example-of-an-android-live-wallpaper

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!