1.原始的android的开机动画,貌似是android的字体然后晃动晃动。

其实这不是动画,只是两张图片。一张mask在上面,下面一张图片在不停的动。

他们在如下目录下

./frameworks/base/core/res/assets/images/android-logo-mask.png

./frameworks/base/core/res/assets/images/android-logo-shine.png。

2.

I suggest that we should use bootanimation.zip instead of default image android-logo-mask.png
in the subsequent product.

I will introduce the bootanimation.zip below, and you can find the two examples in the attachment.
All of you need to do is just to execute a command:
adb push ./bootanimation.zip /data/local/bootanimation.zip

2.1. location of bootanimation.zip

1) /data/local/bootanimation.zip, or
2) /system/media/bootanimation.zip

While power on, handset will retrieve the bootanimation.zip from the location one by one;
If it can not get any of the bootanimation.zip, it will read
android-logo-mask.png,
android-logo-shine.png

2.2. content of bootanimation.zip
It includes two directory and a file.
-rw-r--r-- 1 xwang act 38 2010-08-10 16:55 desc.txt
drwxr-xr-x 2 xwang act 2048 2010-08-10 16:57 part0
drwxr-xr-x 2 xwang act 2048 2010-08-10 16:57 part1

The png images is placed in the directory "part0", "part1".

format of desc.txt, for example
480 800 15
p 1 0 part0
p 0 0 part1

480--width of the image, 800--height of the image, 15--frames of second
p 1, display one time
p 0, display recycling till handset power on finished

The images can be larger than the screen, and the handset will scale them automatically

2.3. how to create the bootanimation.zip
cd ./bootanimation
zip -r -0 bootanimation.zip part0 part1 desc.txt
adb push ./bootanimation.zip /data/local/bootanimation.zip

The -0 parameter is mandotary. It means zip with "store only" mode.

2.4. reboot the handset, you will see the new animation images .

更多相关文章

  1. Android 获取手机上图片和视频的缩略图 Android thumbnails .
  2. Android ListView滑动过程中图片显示重复错位闪烁问题解决
  3. flutter包名,应用名称,图标,启动图片修改
  4. Android TextView加载html图片详解
  5. android 调用图库中选择的图片
  6. Android Animation 动画介绍与详解
  7. android 图片溢出问题2...[geoway]
  8. Android异步加载图片
  9. Android对图片局部扩大的实现

随机推荐

  1. 硬盘亮黄灯没有及时处理?服务器数据恢复案
  2. PHP初识字符串
  3. 一些小例子
  4. 聊一聊如何把SSL证书安装到小鸟云服务器
  5. 关于开发视图
  6. 小鸟云服务器 新增香港高防云服务器,抵御D
  7. VMWARE ESX SERVER虚拟化数据恢复过程总
  8. 利用表格常用标签制造一个商品列表
  9. 动态分页制作及composer自动加载及第三方
  10. curl扩展与composer