您的位置:百味书屋 > 范文大全 > 经典范文 > 手机动态壁纸大全 正文

手机动态壁纸大全

2017-04-23 05:49:57 来源网站: 百味书屋

篇一:Android动态壁纸的制作教程

篇二:解决安卓手机无法使用动态壁纸的方法

解决安卓手机无法使用动态壁纸的方法!

当安卓手机root后,通常会被删除掉动态壁纸和动态壁纸选择器,造成大家无法使用动态壁纸,

在这里与大家分享一下解决办法:(其它很简单的)

1、 将“LiveWallpapers.apk”和“LiveWallpapersPicker.apk ”两

个文件,用“re管理器”(百度一下,大把的)移动到手机“system/app”里面;

2、 分别安装好,这两个文件(不分先后)(如果装过了的就不用

了);

3、 到这里,态壁纸和动态壁纸选择器大家就可以看到了,但是设

置动态壁纸的时候,会出现这样的提示:“动态壁纸选择器(在进程android.process.acore中)已意外停止。请重试”!!!!!(相信很多朋友都遇到过这种情况)

那这个该怎么办呢?没错,就是文件权限问题!

这时候要将这两个文件“LiveWallpapers.apk”和

“LiveWallpapersPicker.apk ”的权限,用RE管理器改成和“system/app”文件夹里其它文件一样的权限;

4、 嘿嘿,最后重启手机就行了就OK了,祝大家好运!

文件下载地址:

1、LiveWallpapers.apk:

http://ishare.iask.sina.com.cn/f/23806573.html?from=dl;

2、LiveWallpapersPicker.apk:

http://ishare.iask.sina.com.cn/f/19417038.html;

来自百度------------“我该用何名字呢”

篇三:Android动态壁纸的制作教程

动态壁纸是在Android 2.1新增的一个功能。动态壁纸可以添加到Android的桌面,具有交互式的动画背景效果。在本教程中,我们将教会你如何去制作一个交互式的动态壁纸。 动态壁纸是一个Android应用程序,包括一个服务(WallpaperService)。该服务必须包括一个引擎(WallpaperService.Engine)。该引擎是连接用户、桌面、系统之间的桥梁。它也可以绘制桌面壁纸。 首先,必须由内在的Engine类创建一个WallpaperService类。该服务必须在

AndroidManifest.xml中声明为"android.service.wallpaper.WallpaperService",这样它才会作为动态壁纸被手机识别。而且还要在服务配置中附加

"android.permission.BIND_WALLPAPER"的权限许可:

[size=+0] 1. <service 2. android:name="LiveWallpaperService"

3. android:enabled="true"

4. android:icon="@drawable/icon"

5. android:label="@string/app_name"

6. android:permission="android.permission.BIND_WALLPAPER">

7. <intent-filter android:priority="1" >

8. <action android:name="android.service.wallpaper.WallpaperService" />

9. </intent-filter>

10. <meta-data

11. android:name="android.service.wallpaper"

12. android:resource="@xml/wallpaper" />

13. </service>

复制代码

创建一个XML文件,放置在应用程序目录下的/res/xml/中。它用来描述你的动态壁纸。

1.

2.

3.

4.

5.

6.

复制代码

再创建一个xml的属性文件,代码如下: <?xml version="1.0" encoding="UTF-8"?> <wallpaper xmlns:android="http://schemas.android.com/apk/res/android" android:thumbnail="@drawable/thumbnail" android:description="@string/description" android:settingsActivity="PreferenceActivity"/>

[size=+0] 1. <declare-styleable name="Wallpaper"> 2. <!-- Component name of an activity that allows the user to modify

3. the current settings for this wallpaper. -->

4. <attr name="settingsActivity" />

5.

6. <!-- Reference to a the wallpaper's thumbnail bitmap. -->

7. <attr name="thumbnail" format="reference" />

8.

9. <!-- Name of the author of this component, e.g. Google. -->

10. <attr name="author" format="reference" />

11.

12. <!-- Short description of the component's purpose or behavior. -->

13. <attr name="description" />

14. </declare-styleable>

复制代码

动态壁纸的服务代码如下:

[size=+0] 1. package net.androgames.blog.sample.livewallpaper;

2.

3. import android.content.SharedPreferences;

4. import android.service.wallpaper.WallpaperService;

5. import android.view.MotionEvent;

6. import android.view.SurfaceHolder;

7.

8. /**

9. * Android Live Wallpaper Archetype

10. * <a href="http://my.oschina.net/arthor" target="_blank"

rel="nofollow">@author</a> antoine vianey

11. * under GPL v3 : http:///arthor" target="_blank"

rel="nofollow">@author</a> antoine vianey

11. * GPL v3 : http://www.gnu.org/licenses/gpl-3.0.html

12. */

13. public class LiveWallpaperPainting extends Thread {

14.

15. /** Reference to the View and the context */

16. private SurfaceHolder surfaceHolder;

17. private Context context;

18.

19. /** State */

20. private boolean wait;

21. private boolean run;

22.

23. /** Dimensions */

24. private int width;

25. private int height;

26.

27. /** Time tracking */

28. private long previousTime;

29. private long currentTime;

30.

31. public LiveWallpaperPainting(SurfaceHolder surfaceHolder,

32. Context context) {

33. // keep a reference of the context and the surface


手机动态壁纸大全》出自:百味书屋
链接地址:http://www.850500.com/news/135894.html
转载请保留,谢谢!
查看更多相关内容>>手机动态壁纸大全
相关文章
  • 手机动态壁纸大全

    Android动态壁纸的制作教程解决安卓手机无法使用动态壁纸的方法解决安卓手机无法使用动态壁纸的方法!当安卓手机root后,通常会被删除掉动态壁纸和动态壁纸选择器,造成大家无法使...